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

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

Private Properties

Свойство Type Description
BuildObjectValue object
ConvertType object

Méthodes publiques

Méthode Description
DecorateList ( IEnumerable pagedList ) : IEnumerable

Add additional properties to the list (by default it just returns the list)

DeleteEntities ( IEnumerable entities ) : int

Remove the specified entities, using the configured DeleteMethodName.

FilterEntityList ( IEnumerable entities ) : IEnumerable

Used to filter down the entity list. Default implementation uses the FilterEntity event.

Refresh ( ) : void

Signals objects connected to this data source that it may have been updated.

SortEntityList ( IEnumerable entities, String sortExpression ) : IEnumerable

Return the sorted

UpdateEntities ( IEnumerable entities, IDictionary values, IDictionary oldValues ) : int

Update the specified entities using the given values (all entities in the list are updated). Return number of entities modified (which will be entities.count, unless there is an error, or a concurrency check fails)

Méthodes protégées

Méthode Description
GetView ( string viewName ) : System.Web.UI.DataSourceView

Private Methods

Méthode Description
BuildObjectValue ( object value, Type destinationType, string paramName ) : object

Convert the specified value to destinationType.

ConvertType ( object value, Type type, string paramName ) : object

Helper for type converter. Contains some help for generic types.

Method Details

DecorateList() public méthode

Add additional properties to the list (by default it just returns the list)
public DecorateList ( IEnumerable pagedList ) : IEnumerable
pagedList IEnumerable
Résultat IEnumerable

DeleteEntities() public méthode

Remove the specified entities, using the configured DeleteMethodName.
public DeleteEntities ( IEnumerable entities ) : int
entities IEnumerable
Résultat int

FilterEntityList() public méthode

Used to filter down the entity list. Default implementation uses the FilterEntity event.
public FilterEntityList ( IEnumerable entities ) : IEnumerable
entities IEnumerable
Résultat IEnumerable

GetView() protected méthode

protected GetView ( string viewName ) : System.Web.UI.DataSourceView
viewName string
Résultat System.Web.UI.DataSourceView

Refresh() public méthode

Signals objects connected to this data source that it may have been updated.
public Refresh ( ) : void
Résultat void

SortEntityList() public méthode

Return the sorted
public SortEntityList ( IEnumerable entities, String sortExpression ) : IEnumerable
entities IEnumerable
sortExpression String
Résultat IEnumerable

UpdateEntities() public méthode

Update the specified entities using the given values (all entities in the list are updated). Return number of entities modified (which will be entities.count, unless there is an error, or a concurrency check fails)
public UpdateEntities ( IEnumerable entities, IDictionary values, IDictionary oldValues ) : int
entities IEnumerable
values IDictionary
oldValues IDictionary
Résultat int