Click or drag to resize

DatabaseOpenCachedTable Method (String, String, String, Boolean)

Opens a new DataSet and returns the first DataTable, retrieving it from the cache if it is cached. If the object is not cached, it is opened from the datasource and added to the global cache.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public DataTable OpenCachedTable(
	string source,
	string cacheName,
	string logSource,
	bool flushBeforeOpen
)

Parameters

source
Type: SystemString
The SQL string to run on the datasource
cacheName
Type: SystemString
The name to use to cache the object in the global cache.
logSource
Type: SystemString
The source of the operation, to be logged to the devlog.
flushBeforeOpen
Type: SystemBoolean
If true, forces the cached object to be removed and then reloaded from the source.

Return Value

Type: DataTable
The populated data table.

Implements

IDatabaseOpenCachedTable(String, String, String, Boolean)
See Also