EntityDAC

TCustomCollection<T> Class

The base class which declares functionality for entity collections.

For a list of all members of this type, see TCustomCollection<T> members.

Unit

EntityDAC.Context

Syntax

TCustomCollection<T: class> = class(TObjectEnumerable, ICustomCollection, INotifiableCollection);

Remarks

The TCustomCollection{T} class inherits from TObjectEnumerable<T>, so it has methods for iterating through a collection of entities and access its items. Also, the class supports the ICustomCollection<T> interface and implements methods for modifying the entity collection: adding and removing items.

Since the collection operates with entities as elements, it has to be associated with a data context.

TCustomCollection{T} is a base class, so it should not be used directly. For handling entities in the code, TCustomCollection{T} descendants such as TEntityCollection<T> and TObjectCollection<T> have to be used.

See Also

© 1997-2017 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback