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).

Namespace:   System.Data.Entity.Core.Mapping
Assembly:  EntityFramework (in EntityFramework.dll)

System.Object
  System.Data.Entity.Core.Mapping.MappingItem
    System.Data.Entity.Core.Mapping.TypeMapping
      System.Data.Entity.Core.Mapping.EntityTypeMapping

public class EntityTypeMapping : TypeMapping

NameDescription
System_CAPS_pubmethodEntityTypeMapping(EntitySetMapping)

Creates an EntityTypeMapping instance.

NameDescription
System_CAPS_pubpropertyEntitySetMapping

Gets the EntitySetMapping that contains this EntityTypeMapping.

System_CAPS_pubpropertyEntityType

Gets the single EntityType being mapped. Throws exception in case of hierarchy type mapping.

System_CAPS_pubpropertyEntityTypes

Gets the mapped entity types.

System_CAPS_pubpropertyFragments

Gets a read-only collection of mapping fragments.

System_CAPS_pubpropertyIsHierarchyMapping

Gets a flag that indicates whether this is a type hierarchy mapping.

System_CAPS_pubpropertyIsOfEntityTypes

Gets the mapped base types for a hierarchy mapping.

NameDescription
System_CAPS_pubmethodAddFragment(MappingFragment)

Adds a mapping fragment.

System_CAPS_pubmethodAddIsOfType(EntityType)

Adds an entity type hierarchy to the mapping. The hierarchy is represented by the specified root entity type.

System_CAPS_pubmethodAddType(EntityType)

Adds an entity type to the mapping.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodRemoveFragment(MappingFragment)

Removes a mapping fragment.

System_CAPS_pubmethodRemoveIsOfType(EntityType)

Removes an entity type hierarchy from the mapping. The hierarchy is represented by the specified root entity type.

System_CAPS_pubmethodRemoveType(EntityType)

Removes an entity type from the mapping.

System_CAPS_pubmethodToString()

(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.