Table of Contents

Class ObjectDataProvider

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

The ObjectDataProvider class defines an object that instantiates a business object for use as a source for data binding.

public class ObjectDataProvider : DataSourceProvider, INotifyPropertyChanged, ISupportInitialize
Inheritance
ObjectDataProvider
Implements

Constructors

ObjectDataProvider()

Instantiates a new instance of a ObjectDataProvider

Properties

ConstructorParameters

Parameters to pass to the Constructor

IsAsynchronous

If true object creation will be performed in a worker thread, otherwise will be done in active context.

MethodName

The name of the method to call on the specified type.

MethodParameters

Parameters to pass to the Method

ObjectInstance

When ObjectType is set to a non-null value, this holds the instantiated object of the Type specified in ObjectType. If ObjectInstance is assigned by the user, ObjectType property will reflect the Type of the assigned object. If a DataSourceProvider is assigned to ObjectInstance, ObjectDataProvider will use the Data of the assigned source provider as its effective ObjectInstance.

ObjectType

The type to instantiate for use as ObjectInstance. This is null when the ObjectDataProvider is uninitialized or explicitly set to null. If the user makes an assignment to ObjectInstance, ObjectType will return the Type of the object (or null if the object is null).

Methods

BeginQuery()

Start instantiating the requested object, either immediately or on a background thread, see IsAsynchronous. Called by base class from InitialLoad or Refresh