Language

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>

コマンドに関連付けられているコンテキスト情報。

適用対象