IDbTransactionInterceptor Interface

Definition

An object that implements this interface can be registered with DbInterception to receive notifications when Entity Framework commits or rollbacks a transaction.

public interface IDbTransactionInterceptor : System.Data.Entity.Infrastructure.Interception.IDbInterceptor
type IDbTransactionInterceptor = interface
    interface IDbInterceptor
Public Interface IDbTransactionInterceptor
Implements IDbInterceptor
Derived
Implements

Remarks

Interceptors can also be registered in the config file of the application. See http://go.microsoft.com/fwlink/?LinkId=260883 for more information about Entity Framework configuration.

Methods

Committed(DbTransaction, DbTransactionInterceptionContext)

This method is called after Commit() is invoked.

Committing(DbTransaction, DbTransactionInterceptionContext)

This method is called before Commit() is invoked.

ConnectionGetting(DbTransaction, DbTransactionInterceptionContext<DbConnection>)

Called before Connection is retrieved.

ConnectionGot(DbTransaction, DbTransactionInterceptionContext<DbConnection>)

Called after Connection is retrieved.

Disposed(DbTransaction, DbTransactionInterceptionContext)

This method is called after Dispose() is invoked.

Disposing(DbTransaction, DbTransactionInterceptionContext)

This method is called before Dispose() is invoked.

IsolationLevelGetting(DbTransaction, DbTransactionInterceptionContext<IsolationLevel>)

Called before IsolationLevel is retrieved.

IsolationLevelGot(DbTransaction, DbTransactionInterceptionContext<IsolationLevel>)

Called after IsolationLevel is retrieved.

RolledBack(DbTransaction, DbTransactionInterceptionContext)

This method is called after Rollback() is invoked.

RollingBack(DbTransaction, DbTransactionInterceptionContext)

This method is called before Rollback() is invoked.

Applies to