Partilhar via


MSL Specification

Mapping specification language (MSL) is an XML-based language that describes the mapping between the conceptual model and storage model of an Entity Framework application.

In an Entity Framework application, mapping metadata is loaded from an .msl file (written in MSL) at build time. The Entity Framework uses mapping metadata at runtime to translate queries against the conceptual model to store-specific commands.

Note

The Entity Data Model Designer (Entity Designer) stores mapping information in an .edmx file at design time. At build time, the Entity Designer uses information in an .edmx file to create the .msl file that is needed by the Entity Framework at runtime. For more information, see .edmx File Overview.

Names of all conceptual or storage model types that are referenced in MSL must be qualified by their respective namespace names. For information about the conceptual model namespace name, see Schema Element (CSDL). For information about the storage model namespace name, see Schema Element (SSDL).

In This Section

Alias Element (MSL)

AssociationEnd Element (MSL)

AssociationSetMapping Element (MSL)

ComplexProperty Element (MSL)

ComplexTypeMapping Element (MSL)

Condition Element (MSL)

DeleteFunction Element (MSL)

EndProperty Element (MSL)

EntityContainerMapping Element (MSL)

EntitySetMapping Element (MSL)

EntityTypeMapping Element (MSL)

FunctionImportMapping Element (MSL)

InsertFunction Element (MSL)

Mapping Element (MSL)

MappingFragment Element (MSL)

ModificationFunctionMapping Element (MSL)

QueryView Element (MSL)

ResultBinding Element (MSL)

ResultMapping Element (MSL)

ScalarProperty Element (MSL)

UpdateFunction Element (MSL)

See Also

Concepts

Entity Framework Overview

Other Resources

CSDL, SSDL, and MSL Specifications
ADO.NET Entity Data Model Tools
Modeling and Mapping