다음을 통해 공유


Name Attribute (EntityType CSDL)

In the Entity Data Model (EDM), an EntityType element in conceptual schema definition language (CSDL) includes a Name attribute that identifies the type in the object model being designed and in the mapping specification.

The following declaration from the Human Resources partition of the Adventure Works database shows the Department entity declaration. The Name attribute is assigned in this manner: Name="Department". Each property of the Department entity also has a Name attribute.

  <EntityType Name="Department" 
    <Key>
        <PropertyRef Name="DepartmentID">
    </Key>
    <Property Name="DepartmentID" Type="Int16" Nullable="false" />
    <Property Name="Name" Type="String" Nullable="false" />
    <Property Name="GroupName" Type="String" Nullable="false" />
    <Property Name="ModifiedDate" Type="DateTime" Nullable="false" />
  </EntityType>

See Also

Concepts

Name Attribute (EntityType SSDL)
TypeName Attribute (EntityTypeMapping)
AdventureWorks Complete Model (EDM)