Partager via


StoreEntitySet Attribute (MSL)

In the Entity Data Model (EDM), the StoreEntitySet attribute of the MappingFragment element specifies the EntitySet in the storage schema that corresponds to a table in the database.

The following example shows the Department entity mapping in the AdventureWorksHRModel namespace. The StoreEntitySet attribute of the MappingFragment element identifies a Department EntitySet in the storage schema. Each property of the Department entity is mapped to a column of the table in ScalarProperty and ColumnName attributes of the MappingFragment element.

      <EntityTypeMapping
                  TypeName="AdventureWorksHRModel.Department">

        <MappingFragment StoreEntitySet="Department">
          <ScalarProperty Name="DepartmentID"
                                 ColumnName="DepartmentID" />
          <ScalarProperty Name="Name" ColumnName="Name" />
          <ScalarProperty Name="GroupName"
                                     ColumnName="GroupName" />
          <ScalarProperty Name="ModifiedDate"
                                 ColumnName="ModifiedDate" />
        </MappingFragment>

      </EntityTypeMapping>

See Also

Concepts

ScalarProperty Element (MSL)
ColumnName Attribute (ScalarProperty MSL)
EntitySetMapping Element (MSL)
EntityContainerMapping Element (MSL)
AdventureWorks Complete Model (EDM)