Saves data set data in session cache.
Namespace:
C1.Web.DataAssembly: C1.Web.Data.2 (in C1.Web.Data.2.dll)
Syntax
C# |
---|
public static void SaveData( IC1CacheableObject cacheableObj, CacheStorageEnum cacheStorage ) |
Visual Basic (Declaration) |
---|
Public Shared Sub SaveData ( _ cacheableObj As IC1CacheableObject, _ cacheStorage As CacheStorageEnum _ ) |
Parameters
- cacheableObj
- Type: C1.Web.Data..::..IC1CacheableObject
C1WebDataSet or C1WebExpressConnection whose data are to be saved in the cache.
- cacheStorage
- Type: C1.Data..::..CacheStorageEnum
Storage type to use for saving data.
Remarks
This method must be called after changing data in the data set in any way,
before the next Fill(IC1CacheableObject) call, because Fill(IC1CacheableObject) restores the data last saved with SaveData.