AdoNetAppenderConnection Property Apache log4net™ SDK Documentation
Gets or sets the underlying IDbConnection.

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 4.0

protected IDbConnection Connection { get; set; }

Property Value

Type: IDbConnection
The underlying IDbConnection.

AdoNetAppender creates a IDbConnection to insert logging events into a database. Classes deriving from AdoNetAppender can use this property to get or set this IDbConnection. Use the underlying IDbConnection returned from Connection if you require access beyond that which AdoNetAppender provides.
See Also