Jazyk

IDbConnectionInterceptor Rozhraní

Definice

Objekt, který implementuje toto rozhraní, je možné zaregistrovat pro DbInterception příjem oznámení, když Entity Framework provádí operace s DbTransaction.

public interface IDbConnectionInterceptor : System.Data.Entity.Infrastructure.Interception.IDbInterceptor
type IDbConnectionInterceptor = interface
    interface IDbInterceptor
Public Interface IDbConnectionInterceptor
Implements IDbInterceptor
Odvozené
Implementuje

Poznámky

Zachytávací moduly lze také zaregistrovat v konfiguračním souboru aplikace. Další informace o konfiguraci Entity Frameworku najdete v tématu http://go.microsoft.com/fwlink/?LinkId=260883 .

Metody

Name Description
BeganTransaction(DbConnection, BeginTransactionInterceptionContext)

Volá se po BeginTransaction(IsolationLevel) vyvolání. Transakce, kterou entity framework používá, lze změnit nastavením Result.

BeginningTransaction(DbConnection, BeginTransactionInterceptionContext)

Volá se před BeginTransaction(IsolationLevel) .

Closed(DbConnection, DbConnectionInterceptionContext)

Volá se po Close() vyvolání.

Closing(DbConnection, DbConnectionInterceptionContext)

Volá se před Close() .

ConnectionStringGetting(DbConnection, DbConnectionInterceptionContext<String>)

ConnectionString Před načtením se načte volal.

ConnectionStringGot(DbConnection, DbConnectionInterceptionContext<String>)

Volá se po ConnectionString načtení.

ConnectionStringSet(DbConnection, DbConnectionPropertyInterceptionContext<String>)

Volá se po ConnectionString nastavení.

ConnectionStringSetting(DbConnection, DbConnectionPropertyInterceptionContext<String>)

Volá se před ConnectionString nastavením.

ConnectionTimeoutGetting(DbConnection, DbConnectionInterceptionContext<Int32>)

ConnectionTimeout Před načtením se načte volal.

ConnectionTimeoutGot(DbConnection, DbConnectionInterceptionContext<Int32>)

Volá se po ConnectionTimeout načtení.

DatabaseGetting(DbConnection, DbConnectionInterceptionContext<String>)

Database Před načtením se načte volal.

DatabaseGot(DbConnection, DbConnectionInterceptionContext<String>)

Volá se po Database načtení.

DataSourceGetting(DbConnection, DbConnectionInterceptionContext<String>)

DataSource Před načtením se načte volal.

DataSourceGot(DbConnection, DbConnectionInterceptionContext<String>)

Volá se po DataSource načtení.

Disposed(DbConnection, DbConnectionInterceptionContext)

Volá se po Dispose() vyvolání.

Disposing(DbConnection, DbConnectionInterceptionContext)

Volá se před Dispose() .

EnlistedTransaction(DbConnection, EnlistTransactionInterceptionContext)

Volá se po EnlistTransaction(Transaction) vyvolání.

EnlistingTransaction(DbConnection, EnlistTransactionInterceptionContext)

Volá se před EnlistTransaction(Transaction) .

Opened(DbConnection, DbConnectionInterceptionContext)

Volá se po Open() nebo je vyvolán jeho asynchronní protějšek.

Opening(DbConnection, DbConnectionInterceptionContext)

Volá se před Open() nebo je vyvolán jeho asynchronní protějšek.

ServerVersionGetting(DbConnection, DbConnectionInterceptionContext<String>)

ServerVersion Před načtením se načte volal.

ServerVersionGot(DbConnection, DbConnectionInterceptionContext<String>)

Volá se po ServerVersion načtení.

StateGetting(DbConnection, DbConnectionInterceptionContext<ConnectionState>)

State Před načtením se načte volal.

StateGot(DbConnection, DbConnectionInterceptionContext<ConnectionState>)

Volá se po State načtení.

Platí pro