語言

DatabaseLogFormatter.LogCommand<TResult> 方法

定義

被呼叫來記錄即將執行的指令。 覆寫此方法以改變指令的記錄方式 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))

類型參數

TResult

行動的結果類型。

參數

command
DbCommand

要記錄的指令。

interceptionContext
DbCommandInterceptionContext<TResult>

與指令相關的情境資訊。

適用於