C# Класс Tiraggo.Core.tgEntityCollectionBase

Наследование: IEntityCollection, IEnumerable, IComponent
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AddEntityToDeletedList void
ClearDeletedEntries void
ConnectionServiceOverride Tiraggo.Interfaces.tgConnection
GetDeletedEntities IEnumerable
GetEntities IEnumerable
GetList IList
GetProperties System.ComponentModel.PropertyDescriptorCollection
GetProviderMetadata Tiraggo.Interfaces.tgProviderSpecificMetadata
IEntityCollection int>.Dictionary
IEntityCollection void
IEnumerable IEnumerator
OnUpdateViewNotification void
RemoveEntity void

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

Метод Описание
AcceptChanges ( ) : void
CombineDeletedEntities ( ) : void
Dispose ( ) : void

For IDisposable support.

GetEntityType ( ) : Type
LoadAll ( ) : bool
LoadAll ( tgSqlAccessType sqlAccessType ) : bool
MarkAllAsDeleted ( ) : void
RejectChanges ( ) : void
Save ( ) : void
Save ( bool continueUpdateOnError ) : void
SeparateDeletedEntities ( ) : void

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

Метод Описание
CreateEntity ( ) : tgEntity
GetCollectionName ( ) : string
GetConnectionName ( ) : string

Called whenever the Entity needs a connection. This can be used to override the default connection per object manually, or automatically by filling in the "Connection Name" on the "Generated Master" template.

GetDynamicQuery ( ) : tgDynamicQuery
HookupQuery ( tgDynamicQuery query ) : void
PopulateCollectionPrefetch ( DataRow row, int>.Dictionary ordinals ) : int>.Dictionary

Overridden by the Generated classes to support the DynamicQuery Prefetch logic

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

Метод Описание
AddEntityToDeletedList ( tgEntity entity ) : void
ClearDeletedEntries ( ) : void
ConnectionServiceOverride ( string connectionName ) : tgConnection
GetDeletedEntities ( ) : IEnumerable
GetEntities ( ) : IEnumerable
GetList ( ) : IList
GetProperties ( tgEntity entity, tgEntityCollectionBase baseCollection ) : PropertyDescriptorCollection
GetProviderMetadata ( ) : tgProviderSpecificMetadata
IEntityCollection ( DataRow row, int>.Dictionary ordinals ) : int>.Dictionary
IEntityCollection ( tgDynamicQuery query ) : void
IEnumerable ( ) : IEnumerator
OnUpdateViewNotification ( object sender, ListChangedType changeType, tgEntity obj ) : void
RemoveEntity ( tgEntity entity ) : void

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

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

public AcceptChanges ( ) : void
Результат void

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

public CombineDeletedEntities ( ) : void
Результат void

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

protected CreateEntity ( ) : tgEntity
Результат tgEntity

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

For IDisposable support.
public Dispose ( ) : void
Результат void

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

protected GetCollectionName ( ) : string
Результат string

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

Called whenever the Entity needs a connection. This can be used to override the default connection per object manually, or automatically by filling in the "Connection Name" on the "Generated Master" template.
protected GetConnectionName ( ) : string
Результат string

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

protected GetDynamicQuery ( ) : tgDynamicQuery
Результат tgDynamicQuery

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

public GetEntityType ( ) : Type
Результат System.Type

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

protected HookupQuery ( tgDynamicQuery query ) : void
query tgDynamicQuery
Результат void

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

public LoadAll ( ) : bool
Результат bool

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

public LoadAll ( tgSqlAccessType sqlAccessType ) : bool
sqlAccessType tgSqlAccessType
Результат bool

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

public MarkAllAsDeleted ( ) : void
Результат void

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

Overridden by the Generated classes to support the DynamicQuery Prefetch logic
protected PopulateCollectionPrefetch ( DataRow row, int>.Dictionary ordinals ) : int>.Dictionary
row System.Data.DataRow The row used to create the Entity in question
ordinals int>.Dictionary The column ordinals, if null then create and return
Результат int>.Dictionary

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

public RejectChanges ( ) : void
Результат void

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

public Save ( ) : void
Результат void

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

public Save ( bool continueUpdateOnError ) : void
continueUpdateOnError bool
Результат void

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

public SeparateDeletedEntities ( ) : void
Результат void