SqlClient Constructor (String, Int32, String, Type,  Object )Nemiro.Data.dll
Initializes a new instance of the SqlClient class.

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

public SqlClient(
	string connectionString,
	int cacheDuration,
	string cachePath,
	Type cacheCustom,
	Object[] cacheCustomArgs
)

Parameters

connectionString
Type: System String
Connection string. For example: user id=;password=;data source=(local);initial catalog= Default value: LocalSqlServer (key name of the connection string in the.config 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.
cachePath
Type: System String
The path of storage a cache files. Using only with CacheType = File.
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.
cacheCustomArgs
Type:  System Object 
Additional parameters for initialization a custom cache. The default value is taken from the NeData:Sql:CacheCustomArgs configuration file.
See Also