Condividi tramite


Type Attribute (Association SSDL)

In the Entity Data Model (EDM), the Type attribute of an End element specifies the type of an entity related to some other entity by the association.

Both ends of the following association example are of the Employee type. The Role and Multiplicity attributes of the End elements distinguish the logic of the relationship beyond the type of the entities related by the association. The Type must be fully qualified by its schema namespace.

  <Association Name="FK_Employee_Employee_ManagerID">
    <End Role="Employee" Type="Adventureworks.Store.Employee"
        Multiplicity="0..1" />
    <End Role="Employee1" Type="Adventureworks.Store.Employee"
        Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Employee">
        <PropertyRef Name="EmployeeID" />
      </Principal>
      <Dependent Role="Employee1">
        <PropertyRef Name="ManagerID" />
      </Dependent>
    </ReferentialConstraint>
  </Association>

See Also

Concepts

AssociationSet Element (EntityContainer SSDL)
Type Attribute (Association CSDL)
AssociationSetMapping Element (MSL)
ReferentialConstraint Element (Association SSDL)