次の方法で共有


TransactionContext コンストラクター

[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]

TransactionContext クラスの新しいインスタンスを初期化します。

名前空間:  System.Data.Entity.Infrastructure
アセンブリ:  EntityFramework (EntityFramework.dll 内)

構文

'宣言
Public Sub New ( _
    existingConnection As DbConnection _
)
'使用
Dim existingConnection As DbConnection 

Dim instance As New TransactionContext(existingConnection)
public TransactionContext(
    DbConnection existingConnection
)
public:
TransactionContext(
    DbConnection^ existingConnection
)
new : 
        existingConnection:DbConnection -> TransactionContext
public function TransactionContext(
    existingConnection : DbConnection
)

パラメーター

参照

参照

TransactionContext クラス

System.Data.Entity.Infrastructure 名前空間