Gets or sets the name of a class that the System.Web.UI.WebControls.ObjectDataSource control uses for a parameter in an update, insert, or delete data operation, instead of passing individual values from the data-bound control.
Documentation for this section has not yet been entered.
Instead of specifying several parameters that are passed to the ObjectDataSource.Update, ObjectDataSource.Insert, and ObjectDataSource.Delete methods, you can create one object that aggregates several data field values. This one object is passed to the methods, instead of several parameters.
The default behavior of an System.Web.UI.WebControls.ObjectDataSource control that is bound to a data-bound control is that the data-bound control creates a System.Web.UI.WebControls.Parameter object for each parameter in the data source. If the business object has many fields, the resulting method also has many fields. The ObjectDataSource.DataObjectTypeName property allows you to specify a type that has a property for each data field. Then, instead of passing several parameters to the method, the runtime creates one object and sets all of its properties. This one object is added to the parameters collection for the method call.
The type that is specified by the ObjectDataSource.DataObjectTypeName property must have a default constructor that has no parameters, so the System.Web.UI.WebControls.ObjectDataSource control can create an instance of the type. The type must also have settable properties that allow the System.Web.UI.WebControls.ObjectDataSource control to populate the object with values that are passed from the data-bound control. The property names on the System.Web.UI.WebControls.ObjectDataSource control are expected to exactly match the parameter names of values that are passed by the data-bound control.
When the ObjectDataSource.DataObjectTypeName property is set and the System.Web.UI.WebControls.ObjectDataSource control is associated with a data-bound control, the methods that are specified by the ObjectDataSource.InsertMethod and ObjectDataSource.DeleteMethod properties must each have one parameter of the type that is specified in the ObjectDataSource.DataObjectTypeName property. If the ObjectDataSource.ConflictDetection property is set to the System.Web.UI.ConflictOptions.OverwriteChanges value, the method that is specified by the ObjectDataSource.UpdateMethod property must have one parameter of the type that is specified in the ObjectDataSource.DataObjectTypeName property. If the ObjectDataSource.ConflictDetection property is set to the System.Web.UI.ConflictOptions.CompareAllValues value, the method that is specified by the ObjectDataSource.UpdateMethod property must have two parameters of the type that is specified in the ObjectDataSource.DataObjectTypeName property. The first parameter contains the original values; the second parameter contains the new values.
The ObjectDataSource.DataObjectTypeName property delegates to the ObjectDataSourceView.DataObjectTypeName property of the System.Web.UI.WebControls.ObjectDataSourceView that is associated with the System.Web.UI.WebControls.ObjectDataSource control.