A set of TCollectionOptions
TCollectionOption = (coKeyOrdered, coLoadForNewEntities);
|Value ||Meaning |
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.
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.