Gets a
DbConnection for the specified database type,
determined by the ConnectionStringManager DBTypes enumeration.
Namespace: CleanCode.DatabaseControls.Support
Assembly: CleanCode.DatabaseControls (in CleanCode.DatabaseControls.dll) Version: 1.2.3.0 (1.2.03)
Syntax
public static DbConnection GetDbConnection( ConnectionStringManager..::..DBTypes dbType, string connectionString )
Parameters
- dbType
- Type: CleanCode.DatabaseControls ConnectionStringManager DBTypes
The database type.
- connectionString
- Type:
System String
The connection string.
Return Value
An appropriate DbConnection.See Also