Share via


DatabaseLogFormatter.BeganTransaction Method

Definition

Called after BeginTransaction(IsolationLevel) is invoked. The default implementation of this method filters by DbContext set into Context, if any, and then logs the event.

public virtual void BeganTransaction (System.Data.Common.DbConnection connection, System.Data.Entity.Infrastructure.Interception.BeginTransactionInterceptionContext interceptionContext);
abstract member BeganTransaction : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.BeginTransactionInterceptionContext -> unit
override this.BeganTransaction : System.Data.Common.DbConnection * System.Data.Entity.Infrastructure.Interception.BeginTransactionInterceptionContext -> unit
Public Overridable Sub BeganTransaction (connection As DbConnection, interceptionContext As BeginTransactionInterceptionContext)

Parameters

connection
DbConnection

The connection that began the transaction.

interceptionContext
BeginTransactionInterceptionContext

Contextual information associated with the call.

Implements

Applies to