Sdílet prostřednictvím


DatabaseLogFormatter.LogCommand<TResult> Metoda

Definice

Volá se k protokolování příkazu, který se chystá spustit. Přepište tuto metodu, abyste změnili způsob protokolování příkazu do System.Data.Entity.Infrastructure.Interception.DatabaseLogFormatter.WriteAction.

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

Parametry typu

TResult

Typ výsledků operace

Parametry

command
DbCommand

Příkaz, který se má protokolovat.

interceptionContext
DbCommandInterceptionContext<TResult>

Kontextové informace přidružené k příkazu

Platí pro