DatabaseLogFormatter.LogParameter<TResult> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called by LogCommand<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) to log each parameter. This method can be called from an overridden implementation of LogCommand<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) to log parameters, and/or can be overridden to change the way that parameters are logged to 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)
Type Parameters
- TResult
The type of the operation's results.
Parameters
- command
- DbCommand
The command being logged.
- interceptionContext
- DbCommandInterceptionContext<TResult>
Contextual information associated with the command.
- parameter
- DbParameter
The parameter to log.
Applies to
Entity Framework