DbContext.IObjectContextAdapter.ObjectContext, propriété
[Cette page concerne Entity Framework version 6. La dernière version est disponible sous le nom de package 'Entity Framework' NuGet. Pour plus d'informations sur Entity Framework, consultez msdn.com/data/ef.]
Retourne l'ObjectContext Entity Framework qui est sous ce contexte.
Espace de noms : System.Data.Entity
Assembly : EntityFramework (dans EntityFramework.dll)
Syntaxe
'Déclaration
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private ReadOnly Property ObjectContext As ObjectContext
Implements IObjectContextAdapter.ObjectContext
Get
'Utilisation
Dim instance As DbContext
Dim value As ObjectContext
value = CType(instance, IObjectContextAdapter).ObjectContext
[SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
ObjectContext IObjectContextAdapter.ObjectContext { get; }
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
private:
virtual property ObjectContext^ ObjectContext {
ObjectContext^ get () sealed = IObjectContextAdapter::ObjectContext::get;
}
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private abstract ObjectContext : ObjectContext
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private override ObjectContext : ObjectContext
JScript supports the use of explicit interface implementations, but not the declarations of new ones.
Valeur de propriété
Type : System.Data.Entity.Core.Objects.ObjectContext
Implémentations
IObjectContextAdapter.ObjectContext