Partager via


DatabaseLogFormatter.ReaderExecuting Méthode

Définition

Cette méthode est appelée avant qu’un appel à ExecuteReader(CommandBehavior) ou l’un de ses équivalents asynchrones soit effectué. L’implémentation par défaut appelle Executing<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) et démarre le chronomètre retourné à partir de GetStopwatch(DbCommandInterceptionContext).

public virtual void ReaderExecuting (System.Data.Common.DbCommand command, System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<System.Data.Common.DbDataReader> interceptionContext);
abstract member ReaderExecuting : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<System.Data.Common.DbDataReader> -> unit
override this.ReaderExecuting : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<System.Data.Common.DbDataReader> -> unit
Public Overridable Sub ReaderExecuting (command As DbCommand, interceptionContext As DbCommandInterceptionContext(Of DbDataReader))

Paramètres

command
DbCommand

Commande en cours d’exécution.

interceptionContext
DbCommandInterceptionContext<DbDataReader>

Informations contextuelles associées à l’appel.

Implémente

S’applique à