Creates an
IDbConnection instance used to connect to the database.
Namespace: log4net.AppenderAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
protected virtual IDbConnection CreateConnection(
Type connectionType,
string connectionString
)
protected virtual IDbConnection CreateConnection(
Type connectionType,
string connectionString
)
Protected Overridable Function CreateConnection (
connectionType As Type,
connectionString As String
) As IDbConnection
Protected Overridable Function CreateConnection (
connectionType As Type,
connectionString As String
) As IDbConnection
protected:
virtual IDbConnection^ CreateConnection(
Type^ connectionType,
String^ connectionString
)
protected:
virtual IDbConnection^ CreateConnection(
Type^ connectionType,
String^ connectionString
)
Return Value
Type:
IDbConnectionAn
IDbConnection instance with a valid connection string.
This method is called whenever a new IDbConnection is needed (i.e. when a reconnect is necessary).