End 要素 (Association SSDL)

Entity Data Model (EDM) では、association 要素の End 子要素は、アソシエーションによって関連するエンティティを指定します。次の例のアソシエーションは、マネージャと従業員のリレーションシップに基づいて複数の Employee エンティティを接続します。アソシエーションの両方の End は、割り当て 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>

参照

概念

End 要素 (Association CSDL)