Language

DatabaseLogFormatter.Executed<TResult> メソッド

定義

コマンドの実行が完了するたびに呼び出されます。 このメソッドの既定の実装では、Context (存在する場合) に設定DbContextフィルター処理し、LogResult<TResult>(DbCommand, DbCommandInterceptionContext<TResult>)を呼び出します。 通常、このメソッドは、コンテキスト フィルター処理の動作を変更するためにのみオーバーライドされます。

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

型パラメーター

TResult

操作の結果の型。

パラメーター

command
DbCommand

実行されたコマンド。

interceptionContext
DbCommandInterceptionContext<TResult>

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

適用対象