ObjectContext.CreateProxyTypes(IEnumerable<Type>) 方法
定义
为提供的枚举中的每个类型生成可用于 Entity Framework 的等效类型。Generates an equivalent type that can be used with the Entity Framework for each type in the supplied enumeration.
public:
void CreateProxyTypes(System::Collections::Generic::IEnumerable<Type ^> ^ types);
public void CreateProxyTypes (System.Collections.Generic.IEnumerable<Type> types);
member this.CreateProxyTypes : seq<Type> -> unit
Public Sub CreateProxyTypes (types As IEnumerable(Of Type))
参数
- types
- IEnumerable<Type>
Type 对象的枚举,这些对象表示映射到概念模型的自定义数据类。An enumeration of Type objects that represent custom data classes that map to the conceptual model.
注解
types枚举中未映射到概念模型中的实体类型的各个类型将被忽略。Individual types in the types enumeration that do not map to an entity type in the conceptual model are ignored.
有关详细信息,请参阅 创建 Poco 代理的要求 和使用 poco 实体。For more information, see Requirements for Creating POCO Proxies and Working with POCO Entities.