Поделиться через


RelationalLoggerExtensions.TransactionRolledBack Метод

Определение

Журналы для TransactionRolledBack события.

public static void TransactionRolledBack (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, TimeSpan duration);
static member TransactionRolledBack : Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger<Microsoft.EntityFrameworkCore.DbLoggerCategory.Database.Transaction> * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Data.Common.DbTransaction * Guid * DateTimeOffset * TimeSpan -> unit
<Extension()>
Public Sub TransactionRolledBack (diagnostics As IDiagnosticsLogger(Of DbLoggerCategory.Database.Transaction), connection As IRelationalConnection, transaction As DbTransaction, transactionId As Guid, startTime As DateTimeOffset, duration As TimeSpan)

Параметры

diagnostics
IDiagnosticsLogger<DbLoggerCategory.Database.Transaction>

Используемое средство ведения журнала диагностика.

connection
IRelationalConnection

Соединение.

transaction
DbTransaction

Транзакция.

transactionId
Guid

Идентификатор корреляции, связанный DbTransactionс .

startTime
DateTimeOffset

Время начала операции.

duration
TimeSpan

Время, затраченное с момента начала операции.

Применяется к