combit List & Label 30 - .NET Help
combit.Reporting.DataProviders Namespace / ObjectDataProvider Class
Properties Methods Events

ObjectDataProvider Class Members

The following tables list the members exposed by ObjectDataProvider.

Public Constructors
 NameDescription
Public ConstructorOverloaded.   
Top
Public Properties
 NameDescription
Public Property

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

{
   public AddressClass Address {get; set;};
   string Firstname {get; set;};
}

will be offered as Customer.Firstname, Customer.Address.Street etc.

 
Public Property

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)

 
Public Property

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.

 
Public PropertyThe 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.  
Public Property  
Public PropertyAllows to switch between LINQ based sorting (default: true) and sorting by the IBindingListView-Interface (depending on if your objects supports and implements this interface).  
Top
Public Methods
 NameDescription
Public Method  
Top
Public Events
 NameDescription
Public Event

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.

 
Public Event  
Public EventEnables 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.  
Top
See Also