Udostępnij za pośrednictwem


DatabaseLogFormatter.Executing<TResult> Metoda

Definicja

Wywoływane za każdym razem, gdy polecenie ma zostać wykonane. Domyślna implementacja tej metody filtruje według DbContext ustawienia na Context, jeśli istnieje, a następnie wywołuje metodę LogCommand<TResult>(DbCommand, DbCommandInterceptionContext<TResult>). Ta metoda zwykle jest zastępowana tylko w celu zmiany zachowania filtrowania kontekstu.

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))

Parametry typu

TResult

Typ wyników operacji.

Parametry

command
DbCommand

Polecenie, które zostanie wykonane.

interceptionContext
DbCommandInterceptionContext<TResult>

Informacje kontekstowe skojarzone z poleceniem .

Dotyczy