Attributo Name (EntityType SSDL)

In Entity Data Model (EDM) una definizione EntityType in SSDL (Store Schema Definition Language) include un attributo Name che identifica il tipo nel modello a oggetti progettato e nella specifica di mapping.

La dichiarazione seguente dalla partizione Human Resources dei metadati di Adventure Works illustra la dichiarazione dell'entità Department. L'attributo Name viene assegnato come segue: Name="Department". Anche ogni proprietà dell'entità Department dispone di un attributo Name.

  <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>

Vedere anche

Concetti

Attributo Name (EntityType CSDL)
Attributo TypeName (EntityTypeMapping)
Modello completo di AdventureWorks (EDM)