CommitFailureHandler.RolledBack 方法
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
停止追蹤已復原的交易。
命名空間: System.Data.Entity.Infrastructure
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Public Overrides Sub RolledBack ( _
transaction As DbTransaction, _
interceptionContext As DbTransactionInterceptionContext _
)
'用途
Dim instance As CommitFailureHandler
Dim transaction As DbTransaction
Dim interceptionContext As DbTransactionInterceptionContext
instance.RolledBack(transaction, interceptionContext)
public override void RolledBack(
DbTransaction transaction,
DbTransactionInterceptionContext interceptionContext
)
public:
virtual void RolledBack(
DbTransaction^ transaction,
DbTransactionInterceptionContext^ interceptionContext
) override
abstract RolledBack :
transaction:DbTransaction *
interceptionContext:DbTransactionInterceptionContext -> unit
override RolledBack :
transaction:DbTransaction *
interceptionContext:DbTransactionInterceptionContext -> unit
public override function RolledBack(
transaction : DbTransaction,
interceptionContext : DbTransactionInterceptionContext
)
參數
- transaction
類型:System.Data.Common.DbTransaction
已復原的交易。
- interceptionContext
類型:DbTransactionInterceptionContext
與此呼叫相關聯的內容資訊。
請參閱
參考
System.Data.Entity.Infrastructure 命名空間
RolledBack(DbTransaction, DbTransactionInterceptionContext)