Language

DatabaseLogFormatter.LogParameter<TResult> メソッド

定義

各パラメーターをログに記録するために LogCommand<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) によって呼び出されます。 このメソッドは、パラメーターをログに記録する LogCommand<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) のオーバーライドされた実装から呼び出すことができます。また、パラメーターを System.Data.Entity.Infrastructure.Interception.DatabaseLogFormatter.WriteActionに記録する方法を変更するためにオーバーライドすることもできます。

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

型パラメーター

TResult

操作の結果の型。

パラメーター

command
DbCommand

ログに記録されるコマンド。

interceptionContext
DbCommandInterceptionContext<TResult>

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

parameter
DbParameter

ログに記録するパラメーター。

適用対象