次の方法で共有


TransactionHandler.ObjectContext プロパティ

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

トランザクション操作が処理されるコンテキストを取得します。

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

構文

'宣言
Public Property ObjectContext As ObjectContext 
    Get 
    Private Set
'使用
Dim instance As TransactionHandler 
Dim value As ObjectContext 

value = instance.ObjectContext
public ObjectContext ObjectContext { get; private set; }
public:
property ObjectContext^ ObjectContext {
    ObjectContext^ get ();
    private: void set (ObjectContext^ value);
}
member ObjectContext : ObjectContext with get, private set
function get ObjectContext () : ObjectContext 
private function set ObjectContext (value : ObjectContext)

プロパティ値

型 : System.Data.Entity.Core.Objects.ObjectContext
トランザクション操作が処理される ObjectContext。

参照

参照

TransactionHandler クラス

System.Data.Entity.Infrastructure 名前空間