AdoNetAppenderCreateConnection Method Apache log4net™ SDK Documentation
Creates an IDbConnection instance used to connect to the database.

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

protected virtual IDbConnection CreateConnection(
	Type connectionType,
	string connectionString
)

Parameters

connectionType
Type: SystemType
The Type of the IDbConnection object.
connectionString
Type: SystemString
The connectionString output from the ResolveConnectionString method.

Return Value

Type: IDbConnection
An IDbConnection 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

Reference