Skip to end of metadata
Go to start of metadata

Represents collection of WCF data services that provides data to intersoft data-bound controls.

Definition

public class WcfDataSource : DataSourceBase

Summary

The following table summarizes the members exposed in this class.

Public Constructors

WcfDataSource Constructor() Initializes a new instance of the WcfDataSource class.

Public Properties

Services Gets the collection of Wcf Data Service that bound to this Wcf Data Source control.

Protected Properties

Product Product info.

Public Methods

Delete(string, object) Perform DELETE operation to Wcf data service given the name of the service.
FindService(string) Search and return the Wcf Data Service in the Services collection given the name of the data service.
GetView()
GetView(string)
GetViewNames()
Insert(string, object) Perform CREATE operation to Wcf data service given the name of the service.
OnApplyTemplate()
Select(string) Perform READ operation to Wcf data service given the name of the service. Note that it will collect information from the Wcf data service's properties (OrderBy, Take, Skip, and Filter) for its data source select arguments.
Select(string, DataSourceSelectArguments) Perform READ operation to Wcf data service given the name of the service and the data source select arguments.
Update(string, object) Perform UPDATE operation to Wcf data service given the name of the service.

Events

Deleted Occurs when a Delete operation has completed.
Deleting Occurs before a Delete operation.
Inserted Occurs when an Insert operation has completed.
Inserting Occurs before a Insert operation.
ObjectCreated Occurs after the service object is created.
ObjectCreating Occurs before the service object is created.
ObjectDisposing Occurs after the service object is disposed.
Selected Occurs when an Select operation has completed.
Selecting Occurs before a Select operation.
Updated Occurs when an Update operation has completed.
Updating Occurs before a Update operation.

Public Constructors

public WcfDataSource()

Initializes a new instance of the WcfDataSource class.

Public Properties

public ObservableCollection<WcfDataService> Services { get; set; }

Gets the collection of Wcf Data Service that bound to this Wcf Data Source control.

Protected Properties

protected ProductInfo Product { get; }

Product info.

Public Methods

public void Delete(string serviceName, object objectInstance)

Perform DELETE operation to Wcf data service given the name of the service.

Parameters

serviceName Name of the Wcf Data Service provided in ServiceName property.
objectInstance The instance / object that will be deleted through Wcf data service.

public WcfDataService FindService(string serviceName)

Search and return the Wcf Data Service in the Services collection given the name of the data service.

Parameters

serviceName Name of the Wcf Data Service provided in ServiceName property.

public DataSourceView GetView()

public DataSourceView GetView(string serviceName)

Parameters

serviceName

public ICollection<string> GetViewNames()

public void Insert(string serviceName, object newInstance)

Perform CREATE operation to Wcf data service given the name of the service.

Parameters

serviceName Name of the Wcf Data Service provided in ServiceName property.
newInstance The new instance / object that will be added through Wcf data service.

public void OnApplyTemplate()

public void Select(string serviceName)

Perform READ operation to Wcf data service given the name of the service. Note that it will collect information from the Wcf data service's properties (OrderBy, Take, Skip, and Filter) for its data source select arguments.

Parameters

serviceName Name of the Wcf Data Service provided in ServiceName property.

public void Select(string serviceName, DataSourceSelectArguments selectArguments)

Perform READ operation to Wcf data service given the name of the service and the data source select arguments.

Parameters

serviceName Name of the Wcf Data Service provided in ServiceName property.
selectArguments DataSourceSelectArguments

public void Update(string serviceName, object updatedInstance)

Perform UPDATE operation to Wcf data service given the name of the service.

Parameters

serviceName Name of the Wcf Data Service provided in ServiceName property.
updatedInstance The updated instance / object that will be updated through Wcf data service.

Events

public event DataSourceStatusEventHandler Deleted

Occurs when a Delete operation has completed.

public event WcfDataSourceMethodEventHandler Deleting

Occurs before a Delete operation.

public event DataSourceStatusEventHandler Inserted

Occurs when an Insert operation has completed.

public event WcfDataSourceMethodEventHandler Inserting

Occurs before a Insert operation.

public event WcfDataSourceObjectEventHandler ObjectCreated

Occurs after the service object is created.

public event WcfDataSourceObjectEventHandler ObjectCreating

Occurs before the service object is created.

public event WcfDataSourceDisposingObjectEventHandler ObjectDisposing

Occurs after the service object is disposed.

public event DataSourceStatusEventHandler Selected

Occurs when an Select operation has completed.

public event WcfDataSourceSelectEventHandler Selecting

Occurs before a Select operation.

public event DataSourceStatusEventHandler Updated

Occurs when an Update operation has completed.

public event WcfDataSourceMethodEventHandler Updating

Occurs before a Update operation.

  • No labels