System.Data.Objects.DataClasses 命名空間

包含類別,其為實體資料模型 (EDM) 中所定義型別的基底類別、導覽屬性所傳回型別的基底類別,以及可定義將通用語言執行平台 (CLR) 物件對應至概念模型中型別屬性的類別。 Includes classes that are base classes for types that are defined in an Entity Data Model (EDM), base classes for the types that are returned by navigation properties, and classes that define attributes that map common language runtime (CLR) objects to types in the conceptual model.

類別

ComplexObject

複雜類型的基底類別。Base class for complex types.

EdmComplexPropertyAttribute

屬性 (Attribute),表示此屬性 (Property) 代表複雜屬性。Attribute that indicates that the property represents a complex property.

EdmComplexTypeAttribute

屬性,表示此類別 (Class) 代表複雜類型。Attribute that indicates that the class represents a complex type.

EdmEntityTypeAttribute

屬性,表示此類別 (Class) 代表實體類型。Attribute that indicates that the class represents an entity type.

EdmEnumTypeAttribute

表示列舉型別的屬性。Attribute indicating an enum type.

EdmFunctionAttribute

屬性,套用到方法時,表示該方法是概念模型或儲存體模型中函式的 Proxy。An attribute that, when applied to a method, indicates that the method is a proxy for a function in the conceptual model or storage model.

EdmPropertyAttribute

屬性 (Attribute) 的基底類別,定義物件層中型別的屬性 (Property) 如何對應到概念模型中實體類型或複雜類型的屬性 (Property)。Base class for attributes that define how properties of types in the object layer are mapped to the properties of entity types or complex types in the conceptual model.

EdmRelationshipAttribute

根據概念模型中的關聯,定義兩個實體 (Entity) 類型之間的關聯性 (Relationship)。Defines a relationship between two entity types based on an association in the conceptual model.

EdmRelationshipNavigationPropertyAttribute

屬性 (Attribute),表示此屬性 (Property) 代表導覽屬性。Attribute that indicates that the property represents a navigation property.

EdmScalarPropertyAttribute

屬性 (Attribute),表示此屬性 (Property) 代表純量屬性。Attribute that indicates that the property represents a scalar property.

EdmSchemaAttribute

屬性,表示此組件 (Assembly) 包含在概念模型中對應至實體 (Entity) 類型的類別 (Class)。Attribute that indicates that the assembly contains classes that are mapped to entity types in a conceptual model.

EdmTypeAttribute

屬性的基底類別,定義物件層中的型別如何對應到概念模型中的實體類型和複雜類型。Base class for attributes that define how types in the object layer are mapped to entity types and complex types in the conceptual model.

EntityCollection<TEntity>

表示位於關聯性 (Relationship) 之「多」端的物件集合。Represents a collection of objects on the "many" end of a relationship.

EntityObject

Entity Data Model 工具所產生之實體類型的基底類別。Base class for entity types that are generated by the Entity Data Model tools.

EntityReference

實作 EntityReference<TEntity> 之非泛型功能的基底類別 (Base Class)。Base class that implements non-generic functionality for an EntityReference<TEntity>.

EntityReference<TEntity>

表示多重性為零或一之關聯的相關端。Represents a related end of an association with a multiplicity of zero or one.

RelatedEnd

表示實作相關端之通用功能的基底類別 (Base Class)。Represents a base class that implements common functionality for a related end.

RelationshipManager

用來追蹤物件內容中物件之間的關聯性 (Relationship)。Used to track relationships between objects in the object context.

StructuralObject

表示類別,該類別包含 date 物件需要的常用方法。Represents a class that contains the common methods need for a date object.

介面

IEntityChangeTracker

定義物件服務用來追蹤對物件屬性所做變更的功能。Defines the facilities that are used by Object Services to track changes that are made to the properties of an object.

IEntityWithChangeTracker

定義實作變更追蹤的實體 (Entity) 類型。Defines an entity type that implements change tracking.

IEntityWithKey

定義公開 (Expose) 實體 (Entity) 索引鍵的實體類型。Defines an entity type that exposes an entity key.

IEntityWithRelationships

定義與一個或多個其他實體 (Entity) 類型具有關聯性 (Relationship) 的實體類型。Defines an entity type with a relationship to one or more other entity type.

IRelatedEnd

定義關聯性 (Relationship) 的一端。Defines the end of a relationship.

列舉

RelationshipKind

列舉兩個或多個實體 (Entity) 之間關聯性 (Relationship) 的類型。Enumerates the type of the relationship between two or more entities.

備註

Entity Data Model 工具會使用概念模型檔案來產生衍生自這個命名空間中之類別的資料類別。Entity Data Model tools use the conceptual model file to generate data classes that derive from classes in this namespace. 如需詳細資訊,請參閱物件服務概觀 (Entity Framework)For more information, see Object Services Overview (Entity Framework). 自訂資料類別可以繼承自這個命名空間中的類別。Custom data classes can inherit from classes in this namespace. System.Data.Objects.DataClasses 命名空間也包含用來實作自訂資料類別的介面,而不需繼承自 Entity Framework 類別。The System.Data.Objects.DataClasses namespace also includes interfaces that are used to implement custom data classes without inheriting from Entity Framework classes. 如需詳細資訊,請參閱 自訂物件For more information, see Customizing Objects.