Returns an IDbConnection object for the given connection string
Namespace: CodeSmith.EngineAssembly: CodeSmith.Engine (in CodeSmith.Engine.dll) Version: 6.0.0.0 (7.0.0.15127)
Syntax
C# |
---|
public virtual IDbConnection GetConnection( string connectionString ) |
Visual Basic |
---|
Public Overridable Function GetConnection ( connectionString As String ) As IDbConnection |
Parameters
- connectionString
- Type: System..::..String
The connection string to be used to create the connection
Return Value
Type: IDbConnectionAn IDbConnection object
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | Thrown if connectionString is null |