C# Class Tiraggo.Core.tgEntityCollectionBase

Inheritance: IEntityCollection, IEnumerable, IComponent
Show file Open project: BrewDawg/Tiraggo Class Usage Examples

Private Properties

Property Type Description
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

Public Methods

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

Protected Methods

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

Private Methods

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

Method Details

AcceptChanges() public method

public AcceptChanges ( ) : void
return void

CombineDeletedEntities() public method

public CombineDeletedEntities ( ) : void
return void

CreateEntity() protected method

protected CreateEntity ( ) : tgEntity
return tgEntity

Dispose() public method

For IDisposable support.
public Dispose ( ) : void
return void

GetCollectionName() protected method

protected GetCollectionName ( ) : string
return string

GetConnectionName() protected method

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

GetDynamicQuery() protected method

protected GetDynamicQuery ( ) : tgDynamicQuery
return tgDynamicQuery

GetEntityType() public method

public GetEntityType ( ) : Type
return System.Type

HookupQuery() protected method

protected HookupQuery ( tgDynamicQuery query ) : void
query tgDynamicQuery
return void

LoadAll() public method

public LoadAll ( ) : bool
return bool

LoadAll() public method

public LoadAll ( tgSqlAccessType sqlAccessType ) : bool
sqlAccessType tgSqlAccessType
return bool

MarkAllAsDeleted() public method

public MarkAllAsDeleted ( ) : void
return void

PopulateCollectionPrefetch() protected method

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

RejectChanges() public method

public RejectChanges ( ) : void
return void

Save() public method

public Save ( ) : void
return void

Save() public method

public Save ( bool continueUpdateOnError ) : void
continueUpdateOnError bool
return void

SeparateDeletedEntities() public method

public SeparateDeletedEntities ( ) : void
return void