DatabaseLogFormatter.Disposing Method

Definition

Overloads

Disposing(DbConnection, DbConnectionInterceptionContext)

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

Disposing(DbTransaction, DbTransactionInterceptionContext)

This method is called before Dispose() is invoked. The default implementation of this method filters by DbContext set into Context, if any, and then logs the event.

Disposing(DbConnection, DbConnectionInterceptionContext)

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

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

Parameters

connection
DbConnection

The connection being disposed.

interceptionContext
DbConnectionInterceptionContext

Contextual information associated with the call.

Implements

Applies to

Disposing(DbTransaction, DbTransactionInterceptionContext)

This method is called before Dispose() is invoked. The default implementation of this method filters by DbContext set into Context, if any, and then logs the event.

public virtual void Disposing (System.Data.Common.DbTransaction transaction, System.Data.Entity.Infrastructure.Interception.DbTransactionInterceptionContext interceptionContext);
abstract member Disposing : System.Data.Common.DbTransaction * System.Data.Entity.Infrastructure.Interception.DbTransactionInterceptionContext -> unit
override this.Disposing : System.Data.Common.DbTransaction * System.Data.Entity.Infrastructure.Interception.DbTransactionInterceptionContext -> unit
Public Overridable Sub Disposing (transaction As DbTransaction, interceptionContext As DbTransactionInterceptionContext)

Parameters

transaction
DbTransaction

The transaction being disposed.

interceptionContext
DbTransactionInterceptionContext

Contextual information associated with the call.

Implements

Applies to