다음을 통해 공유


RelationalLoggerExtensions.TransactionStarting 메서드

정의

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

public static Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<System.Data.Common.DbTransaction> TransactionStarting (this Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Transaction> diagnostics, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Data.IsolationLevel isolationLevel, Guid transactionId, DateTimeOffset startTime);
static member TransactionStarting : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Transaction> * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.IsolationLevel * Guid * DateTimeOffset -> Microsoft.EntityFrameworkCore.Diagnostics.InterceptionResult<System.Data.Common.DbTransaction>
<Extension()>
Public Function TransactionStarting (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Database.Transaction), connection As IRelationalConnection, isolationLevel As IsolationLevel, transactionId As Guid, startTime As DateTimeOffset) As InterceptionResult(Of DbTransaction)

매개 변수

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>

사용할 진단 로거입니다.

connection
IRelationalConnection

연결입니다.

isolationLevel
IsolationLevel

트랜잭션 격리 수준입니다.

transactionId
Guid

와 연결된 상관 관계 ID입니다 DbTransaction.

startTime
DateTimeOffset

작업이 시작된 시간입니다.

반환

인터셉터에 의해 수정되었을 수 있는 실행 결과입니다.

적용 대상