Condividi tramite


DatabaseLogFormatter.ReaderExecuting Metodo

Definizione

Questo metodo viene chiamato prima di una chiamata a o una ExecuteReader(CommandBehavior) delle relative controparti asincrone. L'implementazione predefinita chiama Executing<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) e avvia il controllo di arresto restituito da 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))

Parametri

command
DbCommand

Comando in esecuzione.

interceptionContext
DbCommandInterceptionContext<DbDataReader>

Informazioni contestuali associate alla chiamata.

Implementazioni

Si applica a