語言

DbContext.IObjectContextAdapter.ObjectContext 屬性

定義

回傳該上下文底層的 Entity Framework ObjectContext。

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

屬性值

實作

屬性

例外狀況

如果背景已經被處理掉,我會丟掉。

適用於