Parameter Class
A method or constructor parameter of an ObjectDataSource.
Namespace: DevExpress.DataAccess.ObjectBinding
Assembly: DevExpress.DataAccess.v24.2.dll
Declaration
Remarks
A collection of Parameter objects is returned by the following properties.
-
To bind an ObjectDataSource to a method, do the following.
- Call the ObjectDataSource.BeginUpdate method.
- Assign the method’s name to the ObjectDataSource.DataMember property and specify this method’s parameters (the ObjectDataSource.Parameters collection must contain parameters that are required to call this method and obtain the data).
- Call the ObjectDataSource.EndUpdate method.
ObjectConstructorInfo.Parameters
If it is required that on calling the ObjectDataSource.Fill method, an ObjectDataSource should create an instance of the type specified by its ObjectDataSource.DataSource property, use the ObjectDataSource.Constructor property to specify the required constructor parameters. To assign a constructor without parameters, use the static ObjectConstructorInfo.Default object.
Set the ObjectDataSource.Constructor property to null for the ObjectDataSource to never try to create an object instance (if you need to manually create and assign it, or when binding to a static member).