C# 클래스 OpenSlx.Lib.Web.Controls.EntityDataSource

Allow update of a collection of entities.
상속: System.Web.UI.DataSourceControl
파일 보기 프로젝트 열기: nicocrm/OpenSlx 1 사용 예제들

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