AdoNetAppender CreateConnection Method Apache log4net™ SDK Documentation
Creates an OnlineIDbConnection instance used to connect to the database.

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax

protected virtual IDbConnection CreateConnection(
	Type connectionType,
	string connectionString
)

Parameters

connectionType
Type: OnlineSystem Type
The OnlineType of the OnlineIDbConnection object.
connectionString
Type: OnlineSystem String
The connectionString output from the ResolveConnectionString method.

Return Value

Type: OnlineIDbConnection
An OnlineIDbConnection instance with a valid connection string.
Remarks

This method is called whenever a new IDbConnection is needed (i.e. when a reconnect is necessary).
See Also