IRelationalCommandDiagnosticsLogger.CommandReaderExecutingAsync 메서드

정의

이벤트에 대한 로그입니다 CommandExecuting .

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))

매개 변수

connection
IRelationalConnection

연결입니다.

command
DbCommand

데이터베이스 명령 개체입니다.

context
DbContext

현재 사용 중인 입니다 DbContext . 알 수 없는 경우 null입니다.

commandId
Guid

지정된 DbCommand와 연결된 상관 관계 ID입니다.

connectionId
Guid

사용 중인 과 DbConnection 연결된 상관 관계 ID입니다.

startTime
DateTimeOffset

실행이 시작된 시간입니다.

commandSource
CommandSource

명령의 원본입니다.

cancellationToken
CancellationToken

CancellationToken 작업이 완료 될 때까지 기다리는 동안 관찰할 입니다.

반환

가로채는 결과입니다.

예외

적용 대상