EntityDAC

TCollectionOption Enumeration

A set of TCollectionOptions

Unit

EntityDAC.Context

Syntax

TCollectionOption = (coKeyOrdered, coLoadForNewEntities);

Values

Value Meaning
coKeyOrdered Defines parameters of linked entity collection sorting. If the flag is selected, then on retrieving a linked entity collection from the database it will be sorted by the primary key. If the flag is cleared, then the entity collection will be retrieved unsorted, depending on specifities of the used DBMS. Selected by default.
coLoadForNewEntities Defines parameters of linked entity collection loading for a newly created entity. If the flag is selected, then on calling a linked collection of a newly created entity, the context will attempt to retrieve the collection from the database. If the flag is cleared, then on calling a linked collection of a newly created entity there will be no attempts to access the database The flag affects linked entity collection loading of newly created entities only. If the entity was retrieved from the database using GetEntity or GetEntities methods, then on calling a linked collection of this entity, the context will always read out the linked collection from the database. The flag is cleared by default.

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