共用方式為


IDbTransactionInterceptor.TransactionRolledBack 方法

定義

在 EF 呼叫 之後立即呼叫 Rollback()

public void TransactionRolledBack (System.Data.Common.DbTransaction transaction, Microsoft.EntityFrameworkCore.Diagnostics.TransactionEndEventData eventData);
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
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 Sub TransactionRolledBack (transaction As DbTransaction, eventData As TransactionEndEventData)
Public Overridable Sub TransactionRolledBack (transaction As DbTransaction, eventData As TransactionEndEventData)

參數

transaction
DbTransaction

異動。

eventData
TransactionEndEventData

連線和交易的相關內容資訊。

適用於