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

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

Private Properties

Property Type Description
BuildObjectValue object
ConvertType object

Public Methods

Method 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)

Protected Methods

Method Description
GetView ( string viewName ) : System.Web.UI.DataSourceView

Private Methods

Method 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 method

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

DeleteEntities() public method

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

FilterEntityList() public method

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

GetView() protected method

protected GetView ( string viewName ) : System.Web.UI.DataSourceView
viewName string
return System.Web.UI.DataSourceView

Refresh() public method

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

SortEntityList() public method

Return the sorted
public SortEntityList ( IEnumerable entities, String sortExpression ) : IEnumerable
entities IEnumerable
sortExpression String
return IEnumerable

UpdateEntities() public method

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
return int