다음을 통해 공유


Example Step 4: Modify the Web.Config File

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

This topic describes how to update the Web.config file to reference an extended Orders class.

To update the Web.config file

  1. Create a copy of the Web.config file if you want to be able to revert to your original configuration. Edit the Web.config file to perform the rest of this procedure.

  2. Update the definition and details of the class that you extended. For this example, modify the Type element for the LineItem class. Provide the following attributes:

    Name

    Value

    Key

    "LineItem"

    UserTypeName

    "MyLineItem"

    AssemblyType

    "Local"

    NameSpace

    "MyOrders"

    Assembly

    "MyOrders"

    The Type element for the old LineItem class will look as follows:

    <Type
        Key="LineItem"
        UserTypeName="MyLineItem"
        AssemblyType="Local"
        NameSpace="MyOrders"
        Assembly="MyOrders" />
    ...
    
  3. Save the Web.config file.

See Also

Other Resources

Types Element

Orders Example: Extending the LineItem Class