Compartilhar via


IRelationalCommandDiagnosticsLogger.CommandReaderExecutingAsync Método

Definição

Logs do CommandExecuting evento.

public System.Threading.Tasks.ValueTask<Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<System.Data.Common.DbDataReader>> CommandReaderExecutingAsync (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 CommandReaderExecutingAsync : 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<System.Data.Common.DbDataReader>>
Public Function CommandReaderExecutingAsync (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 DbDataReader))

Parâmetros

connection
IRelationalConnection

A conexão.

command
DbCommand

O objeto de comando do banco de dados.

context
DbContext

O DbContext que está sendo usado no momento, para nulo, se não for conhecido.

commandId
Guid

A ID de correlação associada ao determinado DbCommand.

connectionId
Guid

A ID de correlação associada ao DbConnection que está sendo usado.

startTime
DateTimeOffset

A hora em que a execução começou.

commandSource
CommandSource

Origem do comando.

cancellationToken
CancellationToken

Um CancellationToken a ser observado enquanto aguarda a conclusão da tarefa.

Retornos

Um resultado interceptado.

Exceções

Se o padrão CancellationToken for cancelado.

Aplica-se a