EntityDataSource.ContextType 属性

定义

获取或设置 ObjectContext 控件使用的类型化 EntityDataSource

public:
 property Type ^ ContextType { Type ^ get(); void set(Type ^ value); };
public Type ContextType { get; set; }
member this.ContextType : Type with get, set
Public Property ContextType As Type

属性值

Type

ObjectContext 派生的对象。

实现

注解

ObjectContext控件使用的 EntityDataSource 可通过属性进行访问 ContextType 。 有关详细信息,请参阅 对象上下文 Life-Cycle 管理 (EntityDataSource)

适用于