Compartir a través de


IRelationalCommandDiagnosticsLogger.CommandNonQueryExecutingAsync Método

Definición

Registros del CommandExecuting evento.

public System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int>> CommandNonQueryExecutingAsync (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, System.Threading.CancellationToken cancellationToken = default);
abstract member CommandNonQueryExecutingAsync : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * DateTimeOffset * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<int>>
Public Function CommandNonQueryExecutingAsync (connection As IRelationalConnection, command As DbCommand, context As DbContext, commandId As Guid, connectionId As Guid, startTime As DateTimeOffset, commandSource As CommandSource, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of InterceptionResult(Of Integer))

Parámetros

connection
IRelationalConnection

La conexión.

command
DbCommand

Objeto de comando de base de datos.

context
DbContext

Que DbContext se usa 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 objeto DbConnection que se está usando.

startTime
DateTimeOffset

Hora en que comenzó la ejecución.

commandSource
CommandSource

Origen del comando.

cancellationToken
CancellationToken

que CancellationToken se va a observar mientras espera a que se complete la tarea.

Devoluciones

Resultado interceptado.

Excepciones

Se aplica a