DataSourceCacheLocation Enumeration |
Namespace: SD.LLBLGen.Pro.ORMSupportClasses
Member name | Value | Description | |
---|---|---|---|
ViewState | 0 | Data is stored in the viewstate. Default. | |
Session | 1 | Data is stored in the Session object using a key which is unique for control instance - page combination. | |
ASPNetCache | 2 | 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. | |
None | 3 | 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. |
(c)2002-2019 Solutions Design bv