CSLA .NET 10.0.0
A home for your business logic
Loading...
Searching...
No Matches
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.
override System.Collections.ICollection GetViewNames ()
 Returns a list of views available for this control.

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.

Events

EventHandler< SelectObjectArgs >? SelectObject
 Event raised when an object is to be created and populated with data.
EventHandler< InsertObjectArgs >? InsertObject
 Event raised when an object is to be populated with data and inserted.
EventHandler< UpdateObjectArgs >? UpdateObject
 Event raised when an object is to be updated.
EventHandler< DeleteObjectArgs >? DeleteObject
 Event raised when an object is to be deleted.

Detailed Description

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

Member Function Documentation

◆ GetView()

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

Returns the default view for this data control.

Parameters
viewNameIgnored.

This control only contains a "Default" view.

◆ GetViewNames()

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

Returns a list of views available for this control.

This control only provides the "Default" view.

Property Documentation

◆ TypeAssemblyName

string Csla.Web.CslaDataSource.TypeAssemblyName
getset

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

Obsolete - do not use.

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

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

◆ TypeSupportsSorting

bool Csla.Web.CslaDataSource.TypeSupportsSorting
getset

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

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.

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

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

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


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