次の方法で共有


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

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

適用対象