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.CslaDataSource Class Reference

A Web Forms data binding control designed to support CSLA .NET business objects as data sources. More...

Inheritance diagram for Csla.Web.CslaDataSource:

Protected Member Functions

override DataSourceView GetView (string viewName)
 Returns the default view for this data control. More...
 
override System.Collections.ICollection GetViewNames ()
 Returns a list of views available for this control. 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...
 

Events

EventHandler< SelectObjectArgsSelectObject
 Event raised when an object is to be created and populated with data. More...
 
EventHandler< InsertObjectArgsInsertObject
 Event raised when an object is to be populated with data and inserted. More...
 
EventHandler< UpdateObjectArgsUpdateObject
 Event raised when an object is to be updated. More...
 
EventHandler< DeleteObjectArgsDeleteObject
 Event raised when an object is to be deleted. More...
 

Detailed Description

A Web Forms data binding control designed to support CSLA .NET business objects as data sources.

Definition at line 25 of file CslaDataSource.cs.

Member Function Documentation

◆ GetView()

override DataSourceView Csla.Web.CslaDataSource.GetView ( string  viewName)
protected

Returns the default view for this data control.

Parameters
viewNameIgnored.
Returns

This control only contains a "Default" view.

Definition at line 69 of file CslaDataSource.cs.

◆ GetViewNames()

override System.Collections.ICollection Csla.Web.CslaDataSource.GetViewNames ( )
protected

Returns a list of views available for this control.

This control only provides the "Default" view.

Definition at line 175 of file CslaDataSource.cs.

Property Documentation

◆ TypeAssemblyName

string Csla.Web.CslaDataSource.TypeAssemblyName
getset

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

Obsolete - do not use.

Definition at line 80 of file CslaDataSource.cs.

◆ TypeName

string Csla.Web.CslaDataSource.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, including assembly name.

Definition at line 92 of file CslaDataSource.cs.

◆ TypeSupportsPaging

bool Csla.Web.CslaDataSource.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 107 of file CslaDataSource.cs.

◆ TypeSupportsSorting

bool Csla.Web.CslaDataSource.TypeSupportsSorting
getset

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

Definition at line 117 of file CslaDataSource.cs.

Event Documentation

◆ DeleteObject

EventHandler<DeleteObjectArgs> Csla.Web.CslaDataSource.DeleteObject

Event raised when an object is to be deleted.

Handle this event in a page to delete an object from the database.

Definition at line 61 of file CslaDataSource.cs.

◆ InsertObject

EventHandler<InsertObjectArgs> Csla.Web.CslaDataSource.InsertObject

Event raised when an object is to be populated with data and inserted.

Handle this event in a page to create an instance of the object, load the object with data and insert the object into the database.

Definition at line 46 of file CslaDataSource.cs.

◆ SelectObject

EventHandler<SelectObjectArgs> Csla.Web.CslaDataSource.SelectObject

Event raised when an object is to be created and populated with data.

Handle this event in a page and set e.BusinessObject to the populated business object.

Definition at line 37 of file CslaDataSource.cs.

◆ UpdateObject

EventHandler<UpdateObjectArgs> Csla.Web.CslaDataSource.UpdateObject

Event raised when an object is to be updated.

Handle this event in a page to update an existing instance of an object with new data and then save the object into the database.

Definition at line 54 of file CslaDataSource.cs.