Click or drag to resize

DataSourceCacheLocation Enumeration

Enum to define the data cache to use for the LLBLGen Pro DataSource controls in an ASP.NET application

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.9.0.0 (5.9.0)
Syntax
public enum DataSourceCacheLocation
Members
  Member nameValueDescription
ViewState0 Data is stored in the viewstate. Default.
Session1 Data is stored in the Session object using a key which is unique for control instance - page combination.
ASPNetCache2 Data is stored in the ASPNet cache using a GUID based key. As the data cached is used in a post-back scenario when data has changed, the duration of the cached data is set to the value specified in the ASPNetCacheDuration property of the datasource control. Duration is always sliding, i.e. expires after ASPNetCacheDuration if the data hasn't been requested from the ASPNet cache.
None3 Data isn't cached, all other state is cached in the viewstate. Using this option will cause a refetch of the data if the bound control is editing the data. Only use this cache location option if the data is used in a read-only fashion. Do realize that if the datasource control is asked to refetch the data, it will always have to go to the database to fetch the data.
See Also