Freigeben über


ColumnName Attribute (ScalarProperty MSL)

In the Entity Data Model (EDM), the ColumnName attribute of a ScalarProperty element identifies a column in storage metadata that corresponds to the property of an entity defined in conceptual schema definition language (CSDL).

The following example shows four properties of the Department entity in the AdventureWorksHRModel namespace mapped to corresponding columns of the Department table.

<EntityTypeMapping TypeName="AdventureWorksHRModel.Department">

        <MappingFragment TableName="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

MappingFragment Element (MSL)
EntityContainerMapping Element (MSL)
EntityContainer Element (CSDL)
EntityContainer Element (SSDL)
EntityTypeMapping Element (EntitySetMapping)
AdventureWorks Complete Model (EDM)