DbTransactionInterceptor.TransactionRolledBack 方法

定义

在 EF 调用 后立即调用 Rollback()

public virtual void TransactionRolledBack (System.Data.Common.DbTransaction transaction, Microsoft.EntityFrameworkCore.Diagnostics.TransactionEndEventData eventData);
abstract member TransactionRolledBack : System.Data.Common.DbTransaction * Microsoft.EntityFrameworkCore.Diagnostics.TransactionEndEventData -> unit
override this.TransactionRolledBack : System.Data.Common.DbTransaction * Microsoft.EntityFrameworkCore.Diagnostics.TransactionEndEventData -> unit
Public Overridable Sub TransactionRolledBack (transaction As DbTransaction, eventData As TransactionEndEventData)

参数

transaction
DbTransaction

事务。

eventData
TransactionEndEventData

有关连接和事务的上下文信息。

实现

适用于