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

Allow update of a collection of business entities.
Inheritance: System.Web.UI.DataSourceView
Afficher le fichier Open project: nicocrm/OpenSlx Class Usage Examples

Méthodes publiques

Méthode Description
EntityDataSourceView ( EntityDataSource owner, ICacheService cache ) : System

Méthodes protégées

Méthode 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

Méthode 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 méthode

public EntityDataSourceView ( EntityDataSource owner, ICacheService cache ) : System
owner EntityDataSource
cache ICacheService
Résultat System

ExecuteDelete() protected méthode

protected ExecuteDelete ( IDictionary keys, IDictionary oldValues ) : int
keys IDictionary
oldValues IDictionary
Résultat int

ExecuteSelect() protected méthode

Return data selection.
protected ExecuteSelect ( System.Web.UI.DataSourceSelectArguments arguments ) : IEnumerable
arguments System.Web.UI.DataSourceSelectArguments
Résultat IEnumerable

ExecuteUpdate() protected méthode

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
Résultat int

FindEntityByProperties() protected méthode

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
Résultat IEnumerable