IObjectContextAdapter 接口
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
由可提供 ObjectContext 实例的对象实现的接口。 DbContext 类实现此接口以提供对基础 ObjectContext 的访问。
命名空间: System.Data.Entity.Infrastructure
程序集: EntityFramework(在 EntityFramework.dll 中)
语法
声明
Public Interface IObjectContextAdapter
用法
Dim instance As IObjectContextAdapter
public interface IObjectContextAdapter
public interface class IObjectContextAdapter
type IObjectContextAdapter = interface end
public interface IObjectContextAdapter
IObjectContextAdapter 类型公开以下成员。
属性
名称 | 描述 | |
---|---|---|
ObjectContext | 获取对象上下文。 |
顶部