Compartir a través de


DatabaseLogFormatter.ScalarExecuting Método

Definición

Se llama a este método antes de realizar una llamada a ExecuteScalar() o a uno de sus homólogos asincrónicos. La implementación predeterminada llama Executing<TResult>(DbCommand, DbCommandInterceptionContext<TResult>) a e inicia el cronómetro devuelto desde 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))

Parámetros

command
DbCommand

Comando que se está ejecutando.

interceptionContext
DbCommandInterceptionContext<Object>

Información contextual asociada a la llamada.

Implementaciones

Se aplica a