Clears all memory-resident table views.

Namespace:  C1.Web.Data
Assembly:  C1.Web.Data.2 (in C1.Web.Data.2.dll)

Syntax

C#
public static void ClearMemoryResident(
	IC1CacheableObject cacheableObj
)
Visual Basic (Declaration)
Public Shared Sub ClearMemoryResident ( _
	cacheableObj As IC1CacheableObject _
)

Parameters

cacheableObj
Type: C1.Web.Data..::..IC1CacheableObject
C1WebDataSet or C1WebExpressConnection used to identify the schema whose table views are to be cleared.

Remarks

This method is used when it is necessary to refresh data in memory-resident table views to reflect changes that occurred in the database. Usually, there is no need to use this method, because memory-resident table views are read-only, users cannot change their data. However, when their data change in the database (for example, a new product may be added to a Products table), calling this method will clear the obsolete data from the cache and ensure that new data will be fetched from the database when requested, without stopping and re-starting the application. In C1DataObjects Enterprise, this method clears cached data in all memory-resident table views belonging to a schema (a C1SchemaDef component) . Usually, this means clearing memory-resident table views in the whole application, unless the application uses multiple schemas. In C1DataExpress, this method clears cached data in all memory-resident C1WebExpressTable components connected to a C1WebExpressConnection component.

See Also