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

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

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

Метод Описание
EntityDataSourceView ( EntityDataSource owner, ICacheService cache ) : System

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

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

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

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

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

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

public EntityDataSourceView ( EntityDataSource owner, ICacheService cache ) : System
owner EntityDataSource
cache ICacheService
Результат System

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

protected ExecuteDelete ( IDictionary keys, IDictionary oldValues ) : int
keys IDictionary
oldValues IDictionary
Результат int

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

Return data selection.
protected ExecuteSelect ( System.Web.UI.DataSourceSelectArguments arguments ) : IEnumerable
arguments System.Web.UI.DataSourceSelectArguments
Результат IEnumerable

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

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

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

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