Share via


DbContext.IObjectContextAdapter.ObjectContext Property

Definition

Returns the Entity Framework ObjectContext that is underlying this context.

System.Data.Entity.Core.Objects.ObjectContext System.Data.Entity.Infrastructure.IObjectContextAdapter.ObjectContext { get; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
System.Data.Entity.Core.Objects.ObjectContext System.Data.Entity.Infrastructure.IObjectContextAdapter.ObjectContext { get; }
System.Data.Entity.Infrastructure.IObjectContextAdapter.ObjectContext
 ReadOnly Property ObjectContext As ObjectContext Implements IObjectContextAdapter.ObjectContext

Property Value

Implements

Attributes

Exceptions

Thrown if the context has been disposed.

Applies to