Example Step 4: Modify the Web.Config File
This topic describes how to update the Web.config file to reference an extended Orders class.
To update the Web.config file
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.
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" /> ...
Save the Web.config file.