Returns an IDbConnection object for the given connection string

Namespace: CodeSmith.Engine
Assembly: 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: IDbConnection
An IDbConnection object

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThrown if connectionString is null

See Also