EntitySetMapping Class

Definition

Represents the Mapping metadata for an EnitytSet in CS space.

public class EntitySetMapping : System.Data.Entity.Core.Mapping.EntitySetBaseMapping
type EntitySetMapping = class
    inherit EntitySetBaseMapping
Public Class EntitySetMapping
Inherits EntitySetBaseMapping
Inheritance

Examples

For Example if conceptually you could represent the CS MSL file as following --Mapping --EntityContainerMapping ( CNorthwind-->SNorthwind ) --EntitySetMapping --EntityTypeMapping --MappingFragment --EntityTypeMapping --MappingFragment --AssociationSetMapping --AssociationTypeMapping --MappingFragment This class represents the metadata for the EntitySetMapping elements in the above example. And it is possible to access the EntityTypeMaps underneath it.

Constructors

EntitySetMapping(EntitySet, EntityContainerMapping)

Initialiazes a new EntitySetMapping instance.

Properties

ContainerMapping

Gets the parent container mapping.

(Inherited from EntitySetBaseMapping)
EntitySet

Gets the entity set that is mapped.

EntityTypeMappings

Gets the contained entity type mappings.

ModificationFunctionMappings

Gets the corresponding function mappings.

QueryView

Gets or sets the query view associated with this mapping.

(Inherited from EntitySetBaseMapping)

Methods

AddModificationFunctionMapping(EntityTypeModificationFunctionMapping)

Adds a function mapping.

AddTypeMapping(EntityTypeMapping)

Adds a type mapping.

RemoveModificationFunctionMapping(EntityTypeModificationFunctionMapping)

Removes a function mapping.

RemoveTypeMapping(EntityTypeMapping)

Removes a type mapping.

Applies to