Condividi tramite


DbCommandDispatcher Classe

Definizione

Usato per l'invio di operazioni a un DbCommand oggetto in modo che qualsiasi IDbCommandInterceptor registrazione DbInterception venga notificata prima e dopo l'esecuzione dell'operazione. Le istanze di questa classe vengono ottenute tramite l'API Dispatch fluente.

public class DbCommandDispatcher
type DbCommandDispatcher = class
Public Class DbCommandDispatcher
Ereditarietà
DbCommandDispatcher

Commenti

Questa classe viene usata internamente da Entity Framework durante l'esecuzione di comandi. Viene fornito pubblicamente in modo che il codice eseguito all'esterno degli assembly EF di base possa acconsentire esplicitamente all'intercettazione/traccia dei comandi. Questa operazione viene in genere eseguita dai provider EF che eseguono comandi per conto di EF.

Metodi

Equals(Object)

Usato per l'invio di operazioni a un DbCommand oggetto in modo che qualsiasi IDbCommandInterceptor registrazione DbInterception venga notificata prima e dopo l'esecuzione dell'operazione. Le istanze di questa classe vengono ottenute tramite l'API Dispatch fluente.

GetHashCode()

Usato per l'invio di operazioni a un DbCommand oggetto in modo che qualsiasi IDbCommandInterceptor registrazione DbInterception venga notificata prima e dopo l'esecuzione dell'operazione. Le istanze di questa classe vengono ottenute tramite l'API Dispatch fluente.

GetType()

Ottiene l'oggetto Type dell'istanza corrente.

NonQuery(DbCommand, DbCommandInterceptionContext)

Invia NonQueryExecuting(DbCommand, DbCommandInterceptionContext<Int32>) e NonQueryExecuted(DbCommand, DbCommandInterceptionContext<Int32>) a qualsiasi IDbCommandInterceptor utente registrato DbInterception in precedenza/dopo l'esecuzione di una chiamata a ExecuteNonQuery().

NonQueryAsync(DbCommand, DbCommandInterceptionContext, CancellationToken)

Invia NonQueryExecuting(DbCommand, DbCommandInterceptionContext<Int32>) e NonQueryExecuted(DbCommand, DbCommandInterceptionContext<Int32>) a qualsiasi IDbCommandInterceptor utente registrato DbInterception in precedenza/dopo l'esecuzione di una chiamata a ExecuteNonQueryAsync(CancellationToken).

Reader(DbCommand, DbCommandInterceptionContext)

Invia ReaderExecuting(DbCommand, DbCommandInterceptionContext<DbDataReader>) e ReaderExecuted(DbCommand, DbCommandInterceptionContext<DbDataReader>) a qualsiasi IDbCommandInterceptor utente registrato DbInterception in precedenza/dopo l'esecuzione di una chiamata a ExecuteReader(CommandBehavior).

ReaderAsync(DbCommand, DbCommandInterceptionContext, CancellationToken)

Invia ReaderExecuting(DbCommand, DbCommandInterceptionContext<DbDataReader>) e ReaderExecuted(DbCommand, DbCommandInterceptionContext<DbDataReader>) a qualsiasi IDbCommandInterceptor utente registrato DbInterception in precedenza/dopo l'esecuzione di una chiamata a ExecuteReaderAsync(CommandBehavior, CancellationToken).

Scalar(DbCommand, DbCommandInterceptionContext)

Invia ScalarExecuting(DbCommand, DbCommandInterceptionContext<Object>) e ScalarExecuted(DbCommand, DbCommandInterceptionContext<Object>) a qualsiasi IDbCommandInterceptor utente registrato DbInterception in precedenza/dopo l'esecuzione di una chiamata a ExecuteScalar().

ScalarAsync(DbCommand, DbCommandInterceptionContext, CancellationToken)

Invia ScalarExecuting(DbCommand, DbCommandInterceptionContext<Object>) e ScalarExecuted(DbCommand, DbCommandInterceptionContext<Object>) a qualsiasi IDbCommandInterceptor utente registrato DbInterception in precedenza/dopo l'esecuzione di una chiamata a ExecuteScalarAsync(CancellationToken).

ToString()

Usato per l'invio di operazioni a un DbCommand oggetto in modo che qualsiasi IDbCommandInterceptor registrazione DbInterception venga notificata prima e dopo l'esecuzione dell'operazione. Le istanze di questa classe vengono ottenute tramite l'API Dispatch fluente.

Si applica a