Initializes a new instance of the SqlClient class.
Namespace: Nemiro.Data.SqlAssembly: Nemiro.Data (in Nemiro.Data.dll) Version: 2.11.4.126 (2.11.4.126)
Syntax
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.
- 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