System.Data.Entity.Design 命名空间

System.Data.Entity.Design 命名空间包含生成 Entity Data Model (EDM) 文件和对象源代码的类。 The System.Data.Entity.Design namespace contains classes to generate Entity Data Model (EDM) files and object source code.

EdmToObjectNamespaceMap

表示概念模型到代码命名空间的映射的集合。Represents a collection of conceptual model to code namespace mappings.

EntityClassGenerator

基于概念性架构定义语言 (CSDL) 文件生成对象上下文和实体类(对象层代码)。Generates object context and entity classes (object layer code) from conceptual schema definition language (CSDL) files.

EntityCodeGenerator

基于概念性架构定义语言 (CSDL) 文件生成对象上下文和实体类(对象层代码)。Generates object context and entity classes (object layer code) from conceptual schema definition language (CSDL) files. 从 Entity Framework 版本 4 开始,特定模型的 ObjectContext 类包含类型为 ObjectSet<TEntity> 的属性,这些属性表示该模型的实体集。Starting with Entity Framework version 4, an ObjectContext class for a specific model contains properties of type ObjectSet<TEntity> that represent the model's entity sets.

EntityFrameworkVersions

提供有关 Entity Framework 的不同版本的信息。Provides information about different versions of the Entity Framework.

EntityModelSchemaGenerator

在 S 空间中的 EntityContainer 与 C 空间中的 EntityContainer 之间创建默认的 CCMapping。The class creates a default CCMapping between an EntityContainer in S space and an EntityContainer in C space. 映射将基于已声明的程度的类型生成。The Mapping will be created based on the declared types of extents. 因此继承不工作。So Inheritance does not work.

EntityStoreSchemaFilterEntry

表示单个筛选器项。Represents a single filter entry. 筛选器用于在生成期间允许或排除特定的数据库对象。The filter is used to allow or exclude particular database objects during generation.

EntityStoreSchemaGenerator

负责加载数据库架构信息。Responsible for Loading Database Schema Information.

EntityViewGenerator

StorageMappingItemCollection 范围内生成视图,并为缓存这些视图的类型创建一个源代码文件。Generates views for the extents in the StorageMappingItemCollection, and creates a source code file for a type that will cache these views.

MetadataExtensionMethods

表示元数据发布协议的方法。Represents the methods for the metadata publishing protocols.

MetadataItemCollectionFactory

表示一组用于创建元数据 ItemCollection 实例的方法。Represents a set of methods for creating metadata ItemCollection instances.

PropertyGeneratedEventArgs

OnPropertyGenerated 事件提供数据。Provides data for the OnPropertyGenerated event.

TypeGeneratedEventArgs

OnTypeGenerated 事件提供数据。Provides data for the OnTypeGenerated event.

枚举

EntityStoreSchemaFilterEffect

指定是允许还是排除符合 EntityStoreSchemaFilterEntry 中指定模式的数据库对象。Specifies whether to allow or exclude database objects that match the pattern specified in the EntityStoreSchemaFilterEntry.

EntityStoreSchemaFilterObjectTypes

指定架构筛选器要应用到的存储对象类型。Specifies the store object type to apply the schema filter to.

LanguageOption

指定生成的代码的语言。Specifies the language for the generated code.

委托

PropertyGeneratedEventHandler

表示用来处理 OnPropertyGenerated 事件的方法。Represents the method that will handle the OnPropertyGenerated event.

TypeGeneratedEventHandler

表示用来处理 OnTypeGenerated 事件的方法。Represents the method that will handle the OnTypeGenerated event.

注解

System.Data.Entity.Design 类支持 EDM 工具。The System.Data.Entity.Design classes support the EDM tools. 有关 EDM 工具的详细信息,请参阅ADO.NET 实体数据模型工具For more information about the EDM tools, see ADO.NET Entity Data Model Tools.