DatabaseLogFormatter.LogResult<TResult> Method

Definition

Called to log the result of executing a command. Override this method to change how results are logged to System.Data.Entity.Infrastructure.Interception.DatabaseLogFormatter.WriteAction.

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

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.

Applies to