AdoNetAppender UseTransactions Property | Apache log4net™ SDK Documentation

Should transactions be used to insert logging events in the database.

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

C#
VB
C++
F#
Copy

    public bool UseTransactions { get; set; }

    Public Property UseTransactions As Boolean
    	Get
    	Set

    public:
    property bool UseTransactions {
    	bool get ();
    	void set (bool value);
    }

    member UseTransactions : bool with get, set

#### Property Value

Type: Boolean
true if transactions should be used to insert logging events in the database, otherwise false. The default value is true.
Remarks

Gets or sets a value that indicates whether transactions should be used to insert logging events in the database.

When set a single transaction will be used to insert the buffered events into the database. Otherwise each event will be inserted without using an explicit transaction.

See Also

#### Reference

AdoNetAppender Class
log4net.Appender Namespace