EntityTypeMapping Class
Mapping metadata for Entity type. If an EntitySet represents entities of more than one type, than we will have more than one EntityTypeMapping for an EntitySet( For ex : if PersonSet Entity extent represents entities of types Person and Customer, than we will have two EntityType Mappings under mapping for PersonSet).
Assembly: EntityFramework (in EntityFramework.dll)
System.Data.Entity.Core.Mapping.MappingItem
System.Data.Entity.Core.Mapping.TypeMapping
System.Data.Entity.Core.Mapping.EntityTypeMapping
Name | Description | |
---|---|---|
![]() | EntityTypeMapping(EntitySetMapping) | Creates an EntityTypeMapping instance. |
Name | Description | |
---|---|---|
![]() | EntitySetMapping | Gets the EntitySetMapping that contains this EntityTypeMapping. |
![]() | EntityType | Gets the single EntityType being mapped. Throws exception in case of hierarchy type mapping. |
![]() | EntityTypes | Gets the mapped entity types. |
![]() | Fragments | Gets a read-only collection of mapping fragments. |
![]() | IsHierarchyMapping | Gets a flag that indicates whether this is a type hierarchy mapping. |
![]() | IsOfEntityTypes | Gets the mapped base types for a hierarchy mapping. |
Name | Description | |
---|---|---|
![]() | AddFragment(MappingFragment) | Adds a mapping fragment. |
![]() | AddIsOfType(EntityType) | Adds an entity type hierarchy to the mapping. The hierarchy is represented by the specified root entity type. |
![]() | AddType(EntityType) | Adds an entity type to the mapping. |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | RemoveFragment(MappingFragment) | Removes a mapping fragment. |
![]() | RemoveIsOfType(EntityType) | Removes an entity type hierarchy from the mapping. The hierarchy is represented by the specified root entity type. |
![]() | RemoveType(EntityType) | Removes an entity type from the mapping. |
![]() | ToString() | (Inherited from Object.) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.