Condividi tramite


DatabaseLogFormatter.Executing<TResult> Metodo

Definizione

Chiamato ogni volta che un comando sta per essere eseguito. L'implementazione predefinita di questo metodo filtra impostando DbContextContextin , se presente e quindi chiama LogCommand<TResult>(DbCommand, DbCommandInterceptionContext<TResult>). Questo metodo in genere viene sottoposto a override solo per modificare il comportamento di filtro del contesto.

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

Parametri di tipo

TResult

Tipo dei risultati dell'operazione.

Parametri

command
DbCommand

Comando che verrà eseguito.

interceptionContext
DbCommandInterceptionContext<TResult>

Informazioni contestuali associate al comando.

Si applica a