Share via


DatabaseLogFormatter.Executing<TResult> Method

Definition

Called whenever a command is about to be executed. The default implementation of this method filters by DbContext set into Context, if any, and then calls LogCommand<TResult>(DbCommand, DbCommandInterceptionContext<TResult>). This method would typically only be overridden to change the context filtering behavior.

public virtual void Executing<TResult> (System.Data.Common.DbCommand command, System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<TResult> interceptionContext);
abstract member Executing : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<'Result> -> unit
override this.Executing : System.Data.Common.DbCommand * System.Data.Entity.Infrastructure.Interception.DbCommandInterceptionContext<'Result> -> unit
Public Overridable Sub Executing(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 that will be executed.

interceptionContext
DbCommandInterceptionContext<TResult>

Contextual information associated with the command.

Applies to