Поделиться через


End Element (Association SSDL)

In the Entity Data Model (EDM), the End child elements of an association element specify the entities related by the association. The association in the following example connects Employee entities based on the manager/employee relationship. Both ends of the association are of the same type, as indicated by the assignment Type="AdventureWorks.Store.Employee".

  <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

End Element (Association CSDL)