Removes all data pertaining to a certain data set from global cache.
Namespace:
C1.Web.DataAssembly: C1.Web.Data.2 (in C1.Web.Data.2.dll)
Syntax
C# |
---|
public static void Remove( IC1CacheableObject cacheableObj ) |
Visual Basic (Declaration) |
---|
Public Shared Sub Remove ( _ cacheableObj As IC1CacheableObject _ ) |
Parameters
- cacheableObj
- Type: C1.Web.Data..::..IC1CacheableObject
C1WebDataSet or C1WebExpressConnection whose data are to be deleted from cache.
Remarks
This method removes all data stored in the global cache for the given data set definition
(DataSetDef), regardless of what filter conditions might be used when it was saved in the
cache.
Call this method before calling C1WebDataSet.Fill or C1WebExpressConnection.Fill, if you want to ensure that data will be taken from the database and not from cache, that is, when you need to refresh the data set with the latest data from the database.