Step 2: Extend the User Profile Using Visual Studio .NET

In this step you will link the data members in the Commerce Server Profile Database with the Commerce Server Profiling System.

The data members created in Step 1 are the metadata that point to a database column in the user profile data. You must now create associated data members that point to the database column.

  1. Click Start, point to Programs, point to Microsoft Visual Studio .NET, and then click Microsoft Visual Studio .NET.
  2. In the Microsoft Development Environment [design] – Start Page screen, click Open Project.
  3. In the Open Project dialog box, select the NorthwindTraders project, and then click Open.
  4. In the NorthwindTraders – Microsoft Visual C# .NET [design] – Default.aspx window, click Project on the toolbar, point to Commerce Server Project, and then select Commerce Server Manager.
  5. In Commerce Server Manager, expand Commerce Server Manager, expand Global Resources, expand Profiles(<Server Name>_NorthwindTraders_commerce), expand Profiles Catalog, expand Data Sources, expand ProfileService_SQLSource, expand Data Objects, right-click UserObject, and then select New Data Member.
  6. In the New Data Member dialog box, do the following:
    Use this To do this
    Member Name Select the u_gender data member from the list.
    Display Name Type Gender.
    Type Select the String data type for the data member.
  7. Click Add.
  8. In the New Data Member dialog box, do the following:
    Use this To do this
    Member Name Select the u_userDescription data member from the list.
    Display Name Type User Description.
    Type Select the String data type for the data member.
  9. Click Add, and then click Finish.

Copyright © 2005 Microsoft Corporation.
All rights reserved.