SqlClient Constructor (Type, Int32)Nemiro.Data.dll
Initializes a new instance of the SqlClient class with custom cache object and caching duration.

Namespace: Nemiro.Data.Sql
Assembly: Nemiro.Data (in Nemiro.Data.dll) Version: 2.11.4.126 (2.11.4.126)
Syntax

public SqlClient(
	Type cacheCustom,
	int cacheDuration
)

Parameters

cacheCustom
Type: System Type
Type of custom cache (must inherit from the ObjectCache class). The default value is taken from the NeData:Sql:CacheCustom configuration file.
cacheDuration
Type: System Int32
Duration caching the query results (in seconds). Minus one - without caching. Zero - use the value of the configuration file parameter NeData:Sql:CacheDuration.
See Also