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

与 关联的 DbTransaction关联 ID。

startTime
DateTimeOffset

开始操作的时间。

返回

执行的结果,该结果可能已被侦听器修改。

适用于