Skip to end of metadata
Go to start of metadata

Supports the WCF DataSource control and provides an interface for data-bound controls to perform data operations with business and data objects.

Definition

public class WcfDataSourceView : DataSourceView

Summary

The following table summarizes the members exposed in this class.

Public Constructors

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

Public Properties

ApplicationAssembly Gets the application assembly.
AssemblyNamespace Gets the assembly namespace.
DataObjectTypeName Gets the full name of data object typename.
SelectArgumentTypeName Gets the full name of select argument typename.
Service Gets or sets the Wcf Data Service.
ServiceTypeName Gets the full name of service typename.
ServiceUrl Gets the full service url of the data service.

Public Methods

Delete(object) Perform DELETE operation.
GetSchema()
Insert(object) Perform CREATE operation.
InvalidateAllCache()
InvalidateCache(string, int, int)
InvalidateCache(string)
OnDeleting(WcfDataSourceMethodEventArgs) Raises the Deleting event before the WcfDataSourceView object attempts a delete operation.
OnInserting(WcfDataSourceMethodEventArgs) Raises the Inserting event before the WcfDataSourceView object attempts an insert operation.
OnObjectCreated(WcfDataSourceEventArgs) Raises the ObjectCreated event after the WcfDataSourceView creates an instance of the object that is identified by the TypeName property.
OnObjectCreating(WcfDataSourceEventArgs) Raises the ObjectCreating event before the WcfDataSourceView object creates an instance of a business object to perform a data operation.
OnObjectDisposing(WcfDataSourceDisposingEventArgs) Raises the ObjectDisposing event before the WcfDataSourceView object discards an instantiated type.
OnSelecting(WcfDataSourceSelectEventArgs) Raises the Selecting event before the WcfDataSourceView object attempts a data retrieval operation.
OnUpdating(WcfDataSourceMethodEventArgs) Raises the Updating event before the WcfDataSourceView object attempts an update operation.
Select() Perform READ operation.
Update(object) Perform UPDATE operation.

Protected Methods

Events

Deleting Occurs before a Delete operation.
Inserting Occurs before an Insert operation.
ObjectCreated Occurs after the object that is identified by the TypeName property is created.
ObjectCreating Occurs before the object that is identified by the TypeName property is created.
ObjectDisposing Occurs before the object that is identified by the TypeName property is discarded.
Selecting Occurs before a Select operation.
Updating Occurs before an Update operation.

Public Constructors

public WcfDataSourceView()

Initializes a new instance of the WcfDataSourceView class.

public WcfDataSourceView(WcfDataSource control, WcfDataService service)

Initializes a new instance of the WcfDataSourceView class.

Parameters

control The represented WCF DataSource control
service The represented WCF DataService

Public Properties

public Assembly ApplicationAssembly { get; }

Gets the application assembly.

public string AssemblyNamespace { get; }

Gets the assembly namespace.

public string DataObjectTypeName { get; }

Gets the full name of data object typename.

public string SelectArgumentTypeName { get; }

Gets the full name of select argument typename.

public WcfDataService Service { get; set; }

Gets or sets the Wcf Data Service.

public string ServiceTypeName { get; }

Gets the full name of service typename.

public string ServiceUrl { get; }

Gets the full service url of the data service.

Public Methods

public void Delete(object objectInstance)

Perform DELETE operation.

Parameters

objectInstance The instance / object that will be deleted through Wcf data service.

public object GetSchema()

public void Insert(object newInstance)

Perform CREATE operation.

Parameters

newInstance The new instance / object that will be added through Wcf data service.

public void InvalidateAllCache()

public void InvalidateCache(string parentKey, int startRowIndex, int maximumRows)

Parameters

parentKey
startRowIndex
maximumRows

public void InvalidateCache(string cacheKey)

Parameters

cacheKey

public void OnDeleting(WcfDataSourceMethodEventArgs e)

Raises the Deleting event before the WcfDataSourceView object attempts a delete operation.

Parameters

e An WcfDataSourceMethodEventArgs that contains the event data.

public void OnInserting(WcfDataSourceMethodEventArgs e)

Raises the Inserting event before the WcfDataSourceView object attempts an insert operation.

Parameters

e An WcfDataSourceMethodEventArgs that contains the event data.

public void OnObjectCreated(WcfDataSourceEventArgs e)

Raises the ObjectCreated event after the WcfDataSourceView creates an instance of the object that is identified by the TypeName property.

Parameters

e An WcfDataSourceEventArgs that contains the event data.

public void OnObjectCreating(WcfDataSourceEventArgs e)

Raises the ObjectCreating event before the WcfDataSourceView object creates an instance of a business object to perform a data operation.

Parameters

e An WcfDataSourceEventArgs that contains the event data.

public void OnObjectDisposing(WcfDataSourceDisposingEventArgs e)

Raises the ObjectDisposing event before the WcfDataSourceView object discards an instantiated type.

Parameters

e An WcfDataSourceDisposingEventArgs that contains the event data.

public void OnSelecting(WcfDataSourceSelectEventArgs e)

Raises the Selecting event before the WcfDataSourceView object attempts a data retrieval operation.

Parameters

e An WcfDataSourceSelectEventArgs that contains the event data.

public void OnUpdating(WcfDataSourceMethodEventArgs e)

Raises the Updating event before the WcfDataSourceView object attempts an update operation.

Parameters

e An WcfDataSourceMethodEventArgs that contains the event data.

public void Select()

Perform READ operation.

public void Update(object updatedInstance)

Perform UPDATE operation.

Parameters

updatedInstance The updated instance / object that will be updated through Wcf data service.

Protected Methods

protected int ExecuteDelete(object objectInstance, Dictionary<string, object> primaryKeys)

Parameters

objectInstance
primaryKeys

protected int ExecuteInsert(object newInstance)

Parameters

newInstance

protected IEnumerable ExecuteSelect(DataSourceSelectArguments selectArgument)

Parameters

selectArgument

protected int ExecuteUpdate(object updatedInstance, object previousInstance, Dictionary<string, object> primaryKeys)

Parameters

updatedInstance
previousInstance
primaryKeys

Events

public event WcfDataSourceMethodEventHandler Deleting

Occurs before a Delete operation.

public event WcfDataSourceMethodEventHandler Inserting

Occurs before an Insert operation.

public event WcfDataSourceObjectEventHandler ObjectCreated

Occurs after the object that is identified by the TypeName property is created.

public event WcfDataSourceObjectEventHandler ObjectCreating

Occurs before the object that is identified by the TypeName property is created.

public event WcfDataSourceDisposingObjectEventHandler ObjectDisposing

Occurs before the object that is identified by the TypeName property is discarded.

public event WcfDataSourceSelectEventHandler Selecting

Occurs before a Select operation.

public event WcfDataSourceMethodEventHandler Updating

Occurs before an Update operation.

  • No labels