Share via


EntityContainerMapping Class

Definition

Represents the Mapping metadata for the EntityContainer map in CS space. Only one EntityContainerMapping element is allowed in the MSL file for CS mapping.

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

Examples

For Example if conceptually you could represent the CS MSL file as following ---Mapping --EntityContainerMapping ( CNorthwind-->SNorthwind ) --EntitySetMapping --AssociationSetMapping The type represents the metadata for EntityContainerMapping element in the above example. The EntitySetBaseMapping elements that are children of the EntityContainerMapping element can be accessed through the properties on this type.

Remarks

We currently assume that an Entity Container on the C side is mapped to a single Entity Container in the S - space.

Constructors

EntityContainerMapping(EntityContainer, EntityContainer, StorageMappingItemCollection, Boolean)

Initializes a new EntityContainerMapping instance.

Properties

AssociationSetMappings

Gets the association set mappings.

BuiltInTypeKind

Gets the type kind for this item

ConceptualEntityContainer

Gets the conceptual entity container.

Documentation

Gets or sets the documentation associated with this type.

(Inherited from MetadataItem)
EntitySetMappings

Gets the entity set mappings.

FunctionImportMappings

Gets the function import mappings.

GenerateUpdateViews

Gets a flag that indicates whether to generate the update views or not.

MappingItemCollection

Gets the parent mapping item collection.

MetadataProperties

Gets the list of properties of the current type.

(Inherited from MetadataItem)
StoreEntityContainer

Gets the store entity container.

Methods

AddAnnotation(String, Object)

Adds or updates an annotation with the specified name and value.

(Inherited from MetadataItem)
AddFunctionImportMapping(FunctionImportMapping)

Adds a function import mapping.

AddSetMapping(AssociationSetMapping)

Adds an association set mapping.

AddSetMapping(EntitySetMapping)

Adds an entity set mapping.

RemoveAnnotation(String)

Removes an annotation with the specified name.

(Inherited from MetadataItem)
RemoveFunctionImportMapping(FunctionImportMapping)

Removes a function import mapping.

RemoveSetMapping(AssociationSetMapping)

Removes an association set mapping.

RemoveSetMapping(EntitySetMapping)

Removes an association set mapping.

Applies to