EntityDAC

TCacheOptions.Enabled Property

Allows to enable or disable entity caching.

Class

TCacheOptions

Syntax

property Enabled: boolean default True;

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-2017 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback