IDbTransactionInterceptor.RolledBackToSavepoint 方法

定义

在 EF 回滚到事务保存点后立即调用。

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

参数

transaction
DbTransaction

事务。

eventData
TransactionEventData

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

适用于