CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
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. More...
 

Protected Member Functions

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

Properties

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

Detailed Description

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

Definition at line 19 of file CslaDataSourceView.cs.

Constructor & Destructor Documentation

◆ CslaDataSourceView()

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

Creates an instance of the object.

Parameters
ownerThe CslaDataSource object that owns this view.
viewNameThe name of the view.

Definition at line 34 of file CslaDataSourceView.cs.

Member Function Documentation

◆ ExecuteDelete()

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

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.

Definition at line 207 of file CslaDataSourceView.cs.

◆ ExecuteInsert()

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

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.

Definition at line 167 of file CslaDataSourceView.cs.

◆ ExecuteSelect()

override System.Collections.IEnumerable Csla.Web.CslaDataSourceView.ExecuteSelect ( DataSourceSelectArguments  arguments)
protected

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

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

Definition at line 96 of file CslaDataSourceView.cs.

◆ ExecuteUpdate()

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

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.

Definition at line 248 of file CslaDataSourceView.cs.

Property Documentation

◆ CanDelete

override bool Csla.Web.CslaDataSourceView.CanDelete
get

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

Definition at line 185 of file CslaDataSourceView.cs.

◆ CanInsert

override bool Csla.Web.CslaDataSourceView.CanInsert
get

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

Definition at line 147 of file CslaDataSourceView.cs.

◆ CanPage

override bool Csla.Web.CslaDataSourceView.CanPage
get

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

Definition at line 264 of file CslaDataSourceView.cs.

◆ 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.

Definition at line 277 of file CslaDataSourceView.cs.

◆ CanSort

override bool Csla.Web.CslaDataSourceView.CanSort
get

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

Always returns false.

Definition at line 286 of file CslaDataSourceView.cs.

◆ CanUpdate

override bool Csla.Web.CslaDataSourceView.CanUpdate
get

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

Definition at line 224 of file CslaDataSourceView.cs.

◆ TypeAssemblyName

string Csla.Web.CslaDataSourceView.TypeAssemblyName
getset

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

Obsolete - do not use.

Definition at line 44 of file CslaDataSourceView.cs.

◆ 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.

Definition at line 55 of file CslaDataSourceView.cs.

◆ 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.

Definition at line 70 of file CslaDataSourceView.cs.

◆ TypeSupportsSorting

bool Csla.Web.CslaDataSourceView.TypeSupportsSorting
getset

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

Definition at line 80 of file CslaDataSourceView.cs.