Name | Description | |
---|---|---|
![]() | ObjectDataProvider Constructor | Overloaded. |
The following tables list the members exposed by ObjectDataProvider.
Name | Description | |
---|---|---|
![]() | ObjectDataProvider Constructor | Overloaded. |
Name | Description | |
---|---|---|
![]() | FlattenStructure | This optimization targets classes that contain class properties. If possible (i.e. no property is of type IEnumberable<T>) the members of this class properties are offered directly in the base table. A structure like (pseudo code) class Customer { will be offered as Customer.Firstname, Customer.Address.Street etc. |
![]() | MaximumRecursionDepth | This property sets up to which recursion depth relations should be resolved. An example would be a class "Person" which itself has a list <Person> as a member. (Default: 3) |
![]() | ObjectForStructureParsing | Allows to declare an object that is to be used for the structure parsing. That is especially helpful if no strongly typed objects are used the reflection does not depend on the concrete contents to determine the data structure. A "completely filled" object can be provided with this property, without the data actually being printed. |
![]() | RootTableName | The names for the tables are usually determined by the property names, i.e. if a Person has a List<Addresses> property called "Addresses", this will be the name of the table object made available in the Designer. However, for the "root" object, there is no such property name. Thus, you may set the table name via this property. The default value for this property is the type name of the source object or - if it is a generic type - the type name of the first generic parameter. |
![]() | Source | |
![]() | UseLinqForSorting | Allows to switch between LINQ based sorting (default: true) and sorting by the IBindingListView-Interface (depending on if your objects supports and implements this interface). |
Name | Description | |
---|---|---|
![]() | HandleEnumerableProperty | With this event every object (table) gets the path to determine in which layer it currently is. Additionally you can define that further iterations on this layer should not be executed to be able to further filter the data source. |
![]() | HandleFlattenedProperty | |
![]() | LoadDeferredContent | Enables lazy property loading. This event is triggered before the provider does examine the property and enables to late load property contents as they are actually required. See the MSDN documentation on loading deferred content for WCF or ADO.NET Data Services for an example. |