Share via


DatabaseLogFormatter.ScalarExecuting Method

Definition

This method is called before a call to ExecuteScalar() or one of its async counterparts is made. The default implementation calls Executing<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) and starts the stopwatch returned from GetStopwatch(DbCommandInterceptionContext).

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

Parameters

command
DbCommand

The command being executed.

interceptionContext
DbCommandInterceptionContext<Object>

Contextual information associated with the call.

Implements

Applies to