C# Class OpenSlx.Lib.Web.Controls.EntityDataSourceView

Allow update of a collection of business entities.
Inheritance: System.Web.UI.DataSourceView
显示文件 Open project: nicocrm/OpenSlx Class Usage Examples

Public Methods

Method Description
EntityDataSourceView ( EntityDataSource owner, ICacheService cache ) : System

Protected Methods

Method Description
ExecuteDelete ( IDictionary keys, IDictionary oldValues ) : int
ExecuteSelect ( System.Web.UI.DataSourceSelectArguments arguments ) : IEnumerable

Return data selection.

ExecuteUpdate ( IDictionary keys, IDictionary values, IDictionary oldValues ) : int

Update specified rows of data (normally, only one row).

FindEntityByProperties ( IDictionary keys ) : IEnumerable

Find the objects that have the specified property values. Return empty list if not found. Used to locate entities to update.

Private Methods

Method Description
GetStaticType ( Type t ) : Type

If t is a dynamic type, this will return the first static ancestor. If t is already a static type, this will return t.

Method Details

EntityDataSourceView() public method

public EntityDataSourceView ( EntityDataSource owner, ICacheService cache ) : System
owner EntityDataSource
cache ICacheService
return System

ExecuteDelete() protected method

protected ExecuteDelete ( IDictionary keys, IDictionary oldValues ) : int
keys IDictionary
oldValues IDictionary
return int

ExecuteSelect() protected method

Return data selection.
protected ExecuteSelect ( System.Web.UI.DataSourceSelectArguments arguments ) : IEnumerable
arguments System.Web.UI.DataSourceSelectArguments
return IEnumerable

ExecuteUpdate() protected method

Update specified rows of data (normally, only one row).
protected ExecuteUpdate ( IDictionary keys, IDictionary values, IDictionary oldValues ) : int
keys IDictionary Dictionary of keyname/keyvalue
values IDictionary Dictionary of property name/property value
oldValues IDictionary Dictionary of property name/property value (for old values) - not used at this time
return int

FindEntityByProperties() protected method

Find the objects that have the specified property values. Return empty list if not found. Used to locate entities to update.
protected FindEntityByProperties ( IDictionary keys ) : IEnumerable
keys IDictionary
return IEnumerable