RelationalLoggerExtensions.TransactionUsed 方法

定义

TransactionUsed事件的日志。

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

参数

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>

要使用的诊断记录器。

connection
IRelationalConnection

连接。

transaction
DbTransaction

事务。

transactionId
Guid

与 关联的 DbTransaction关联 ID。

startTime
DateTimeOffset

开始操作的时间。

返回

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

适用于