Condividi tramite


DatabaseLogFormatter.ScalarExecuting Metodo

Definizione

Questo metodo viene chiamato prima che venga effettuata una chiamata a ExecuteScalar() o una 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 ScalarExecuting (System.Data.Common.DbCommand command, System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<object> interceptionContext);
abstract member ScalarExecuting : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<obj> -> unit
override this.ScalarExecuting : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<obj> -> unit
Public Overridable Sub ScalarExecuting (command As DbCommand, interceptionContext As DbCommandInterceptionContext(Of Object))

Parametri

command
DbCommand

Comando in esecuzione.

interceptionContext
DbCommandInterceptionContext<Object>

Informazioni contestuali associate alla chiamata.

Implementazioni

Si applica a