C# Класс OpenSlx.Lib.Web.Controls.EntityDataSource

Allow update of a collection of entities.
Наследование: System.Web.UI.DataSourceControl
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
BuildObjectValue object
ConvertType object

Открытые методы

Метод Описание
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)

Защищенные методы

Метод Описание
GetView ( string viewName ) : System.Web.UI.DataSourceView

Приватные методы

Метод Описание
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.

Описание методов

DecorateList() публичный Метод

Add additional properties to the list (by default it just returns the list)
public DecorateList ( IEnumerable pagedList ) : IEnumerable
pagedList IEnumerable
Результат IEnumerable

DeleteEntities() публичный Метод

Remove the specified entities, using the configured DeleteMethodName.
public DeleteEntities ( IEnumerable entities ) : int
entities IEnumerable
Результат int

FilterEntityList() публичный Метод

Used to filter down the entity list. Default implementation uses the FilterEntity event.
public FilterEntityList ( IEnumerable entities ) : IEnumerable
entities IEnumerable
Результат IEnumerable

GetView() защищенный Метод

protected GetView ( string viewName ) : System.Web.UI.DataSourceView
viewName string
Результат System.Web.UI.DataSourceView

Refresh() публичный Метод

Signals objects connected to this data source that it may have been updated.
public Refresh ( ) : void
Результат void

SortEntityList() публичный Метод

Return the sorted
public SortEntityList ( IEnumerable entities, String sortExpression ) : IEnumerable
entities IEnumerable
sortExpression String
Результат IEnumerable

UpdateEntities() публичный Метод

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
Результат int