Share via


Name Attribute (EntityType SSDL)

In the Entity Data Model (EDM), an EntityType definition in store schema definition language (SSDL) 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 metadata 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="smallint" Nullable="false"
                               StoreGeneratedPattern="Identity" />
    <Property Name="Name" Type="nvarchar" Nullable="false" MaxLength="50" />
    <Property Name="GroupName" Type="nvarchar" Nullable="false"
                                                 MaxLength="50" />
    <Property Name="ModifiedDate" Type="datetime" Nullable="false" />
  </EntityType>

See Also

Concepts

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