CSLA .NET 10.0.0
A home for your business logic
Loading...
Searching...
No Matches
Csla.Web.CslaDataSourceView Class Reference

The object responsible for managing data binding to a specific CSLA .NET object. More...

Inheritance diagram for Csla.Web.CslaDataSourceView:

Public Member Functions

 CslaDataSourceView (CslaDataSource owner, string viewName)
 Creates an instance of the object.

Protected Member Functions

override IEnumerable ExecuteSelect (DataSourceSelectArguments arguments)
 Implements the select behavior for the control by raising the CslaDataSource.SelectObject event.
override int ExecuteInsert (IDictionary values)
 Implements the insert behavior for the control by raising the CslaDataSource.InsertObject event.
override int ExecuteDelete (IDictionary keys, IDictionary oldValues)
 Implements the delete behavior for the control by raising the CslaDataSource.DeleteObject event.
override int ExecuteUpdate (IDictionary keys, IDictionary values, IDictionary oldValues)
 Implements the update behavior for the control by raising the CslaDataSource.UpdateObject event.

Properties

string TypeAssemblyName = "" [get, set]
 Get or set the name of the assembly (no longer used).
string TypeName = "" [get, set]
 Get or set the full type name of the business object class to be used as a data source.
bool TypeSupportsPaging [get, set]
 Get or set a value indicating whether the business object data source supports paging.
bool TypeSupportsSorting [get, set]
 Get or set a value indicating whether the business object data source supports sorting.
override bool CanInsert [get]
 Gets a value indicating whether the data source can insert data.
override bool CanDelete [get]
 Gets a value indicating whether the data source can delete data.
override bool CanUpdate [get]
 Gets a value indicating whether the data source can update data.
override bool CanPage [get]
 Gets a value indicating whether the data source supports paging of the data.
override bool CanRetrieveTotalRowCount [get]
 Gets a value indicating whether the data source can retrieve the total number of rows of data. Always returns true.
override bool CanSort [get]
 Gets a alue indicating whether the data source supports sorting of the data. Always returns false.

Detailed Description

The object responsible for managing data binding to a specific CSLA .NET object.

Constructor & Destructor Documentation

◆ CslaDataSourceView()

Csla.Web.CslaDataSourceView.CslaDataSourceView ( CslaDataSource owner,
string viewName )
inline

Creates an instance of the object.

Parameters
ownerThe CslaDataSource object that owns this view.
viewNameThe name of the view.
Exceptions
ArgumentNullExceptionowner or viewName is null.

Member Function Documentation

◆ ExecuteDelete()

override int Csla.Web.CslaDataSourceView.ExecuteDelete ( IDictionary keys,
IDictionary oldValues )
inlineprotected

Implements the delete behavior for the control by raising the CslaDataSource.DeleteObject event.

Parameters
keysThe key values from the UI that are to be deleted.
oldValuesThe old values from the UI.
Returns
The number of rows affected.

◆ ExecuteInsert()

override int Csla.Web.CslaDataSourceView.ExecuteInsert ( IDictionary values)
inlineprotected

Implements the insert behavior for the control by raising the CslaDataSource.InsertObject event.

Parameters
valuesThe values from the UI that are to be inserted.
Returns
The number of rows affected.

◆ ExecuteSelect()

override IEnumerable Csla.Web.CslaDataSourceView.ExecuteSelect ( DataSourceSelectArguments arguments)
inlineprotected

Implements the select behavior for the control by raising the CslaDataSource.SelectObject event.

Parameters
argumentsArguments object.
Returns
The data returned from the select.

◆ ExecuteUpdate()

override int Csla.Web.CslaDataSourceView.ExecuteUpdate ( IDictionary keys,
IDictionary values,
IDictionary oldValues )
inlineprotected

Implements the update behavior for the control by raising the CslaDataSource.UpdateObject event.

Parameters
keysThe key values from the UI that identify the object to be updated.
valuesThe values from the UI that are to be inserted.
oldValuesThe old values from the UI.
Returns
The number of rows affected.

Property Documentation

◆ CanDelete

override bool Csla.Web.CslaDataSourceView.CanDelete
get

Gets a value indicating whether the data source can delete data.

◆ CanInsert

override bool Csla.Web.CslaDataSourceView.CanInsert
get

Gets a value indicating whether the data source can insert data.

◆ CanPage

override bool Csla.Web.CslaDataSourceView.CanPage
get

Gets a value indicating whether the data source supports paging of the data.

◆ CanRetrieveTotalRowCount

override bool Csla.Web.CslaDataSourceView.CanRetrieveTotalRowCount
get

Gets a value indicating whether the data source can retrieve the total number of rows of data. Always returns true.

◆ CanSort

override bool Csla.Web.CslaDataSourceView.CanSort
get

Gets a alue indicating whether the data source supports sorting of the data. Always returns false.

◆ CanUpdate

override bool Csla.Web.CslaDataSourceView.CanUpdate
get

Gets a value indicating whether the data source can update data.

◆ TypeAssemblyName

string Csla.Web.CslaDataSourceView.TypeAssemblyName = ""
getset

Get or set the name of the assembly (no longer used).

Obsolete - do not use.

◆ TypeName

string Csla.Web.CslaDataSourceView.TypeName = ""
getset

Get or set the full type name of the business object class to be used as a data source.

Full type name of the business class.

◆ TypeSupportsPaging

bool Csla.Web.CslaDataSourceView.TypeSupportsPaging
getset

Get or set a value indicating whether the business object data source supports paging.

To support paging, the business object (collection) must implement Csla.Core.IReportTotalRowCount.

◆ TypeSupportsSorting

bool Csla.Web.CslaDataSourceView.TypeSupportsSorting
getset

Get or set a value indicating whether the business object data source supports sorting.


The documentation for this class was generated from the following file: