Compartir a través de


IRelationalCommandDiagnosticsLogger.CommandScalarExecuting Método

Definición

Registra el CommandExecuting evento.

public Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<object> CommandScalarExecuting (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext? context, Guid commandId, Guid connectionId, DateTimeOffset startTime, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource);
abstract member CommandScalarExecuting : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * DateTimeOffset * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<obj>
Public Function CommandScalarExecuting (connection As IRelationalConnection, command As DbCommand, context As DbContext, commandId As Guid, connectionId As Guid, startTime As DateTimeOffset, commandSource As CommandSource) As InterceptionResult(Of Object)

Parámetros

connection
IRelationalConnection

La conexión.

command
DbCommand

Objeto de comando de base de datos.

context
DbContext

Objeto DbContext que se está usando actualmente, en null si no se conoce.

commandId
Guid

Identificador de correlación asociado al especificado DbCommand.

connectionId
Guid

Identificador de correlación asociado al DbConnection objeto que se usa.

startTime
DateTimeOffset

Hora en que comenzó la ejecución.

commandSource
CommandSource

Origen del comando.

Devoluciones

Resultado interceptado.

Se aplica a