TransactionHandler.Connection プロパティ
[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]
トランザクション操作が処理される接続を取得します。
名前空間: System.Data.Entity.Infrastructure
アセンブリ: EntityFramework (EntityFramework.dll 内)
構文
'宣言
Public Property Connection As DbConnection
Get
Private Set
'使用
Dim instance As TransactionHandler
Dim value As DbConnection
value = instance.Connection
public DbConnection Connection { get; private set; }
public:
property DbConnection^ Connection {
DbConnection^ get ();
private: void set (DbConnection^ value);
}
member Connection : DbConnection with get, private set
function get Connection () : DbConnection
private function set Connection (value : DbConnection)
プロパティ値
型 : System.Data.Common.DbConnection
トランザクション操作が処理される DbConnection。
解説
この接続オブジェクトは、コンテキストが利用できない場合に特定の操作を処理する必要があるかどうかを決定するためにのみ使用します。