IRelationalCommandDiagnosticsLogger.CommandReaderExecutedAsync Yöntem

Tanım

Olay için CommandExecuted günlükler.

public System.Threading.Tasks.ValueTask<System.Data.Common.DbDataReader> CommandReaderExecutedAsync (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.Common.DbCommand command, Microsoft.EntityFrameworkCore.DbContext? context, Guid commandId, Guid connectionId, System.Data.Common.DbDataReader methodResult, DateTimeOffset startTime, TimeSpan duration, Microsoft.EntityFrameworkCore.Diagnostics.CommandSource commandSource, System.Threading.CancellationToken cancellationToken = default);
abstract member CommandReaderExecutedAsync : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbCommand * Microsoft.EntityFrameworkCore.DbContext * Guid * Guid * System.Data.Common.DbDataReader * DateTimeOffset * TimeSpan * Microsoft.EntityFrameworkCore.Diagnostics.CommandSource * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<System.Data.Common.DbDataReader>
Public Function CommandReaderExecutedAsync (connection As IRelationalConnection, command As DbCommand, context As DbContext, commandId As Guid, connectionId As Guid, methodResult As DbDataReader, startTime As DateTimeOffset, duration As TimeSpan, commandSource As CommandSource, Optional cancellationToken As CancellationToken = Nothing) As ValueTask(Of DbDataReader)

Parametreler

connection
IRelationalConnection

Bağlantı.

command
DbCommand

Veritabanı komut nesnesi.

context
DbContext

Bilinen DbContext değilse null olarak kullanılmakta olan.

commandId
Guid

Verilen DbCommandile ilişkili bağıntı kimliği.

connectionId
Guid

Kullanılmakta olan ile ilişkili bağıntı DbConnection kimliği.

methodResult
DbDataReader

Temel alınan yöntem yürütmesinden döndürülen değer.

startTime
DateTimeOffset

Yürütmenin başladığı zaman.

duration
TimeSpan

Sonuçların tüketilmesi dahil olmak üzere komut yürütme süresi.

commandSource
CommandSource

Komutun kaynağı.

cancellationToken
CancellationToken

CancellationToken Görevin tamamlanmasını beklerken gözlemlemek için bir.

Döndürülenler

Bir kesme noktası tarafından değiştirilmiş olabilecek yürütmenin sonucu.

Özel durumlar

Şunlara uygulanır