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