Udostępnij za pośrednictwem


DatabaseLogFormatter.Executed<TResult> Metoda

Definicja

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

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

Parametry typu

TResult

Typ wyników operacji.

Parametry

command
DbCommand

Polecenie, które zostało wykonane.

interceptionContext
DbCommandInterceptionContext<TResult>

Informacje kontekstowe skojarzone z poleceniem.

Dotyczy