EntityDAC

TContextOptions.Cache Property

Allows to enable or disable entity caching.

Class

TContextOptions

Syntax

property Cache: TCacheOptions;

Remarks

If Enabled is set to True, then entity caching is enabled, and on attempt to retrieve an entity (entity list) for the second time using GetEntity or GetEntities methods, the corresponding entities will be taken from the cache.

If set to False, then caching is disabled, and using GetEntity or GetEntities methods will return entities from the database every time.

True by default.

See Also

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