次の方法で共有


CdmEntityContainer Attribute (MSL)

CdmEntityContainer and StorageEntityContainer are attributes of the EntityContainerMapping element in the Entity Data Model (EDM) mapping specification.

<EntityContainerMapping CdmEntityContainer="HumanResources" 
                         StorageEntityContainer="HumanResources">

The CdmEntityContainer attribute identifies an entity container that contains entity sets and association sets defined in conceptual schema definition language (CSDL). The StorageEntityContainer identifies metadata on the storage model used by the application. Storage metadata is specified in store schema definition language (SSDL).

In the XML hierarchy, the EntityContainer element is separate from the Schema element even though the EntityContainer is defined in the schema. This is important in mapping the EntityContainer to storage because the EntityContainer elements in the conceptual schema are mapped to corresponding EntityContainer elements in the storage metadata. In the mapping file, the name of the EntityContainer does not include the schema namespace name. The use of an entity container name qualified by a schema namespace name causes a mapping exception.

For more information about entity containers, see Entity Containers (EDM).

See Also

Concepts

EntityContainerMapping Element (MSL)
EntityContainer Element (CSDL)
EntityContainer Element (SSDL)
Entity Containers (EDM)

Other Resources

EDM Specifications