RelationalLoggerExtensions.TransactionRolledBack 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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关联 ID。
- startTime
- DateTimeOffset
开始操作的时间。
- duration
- TimeSpan
从操作开始开始的已用时间。