다음을 통해 공유


End 요소(연결 SSDL)

EDM(엔터티 데이터 모델)에서 association 요소의 End 자식 요소는 연결과 관련된 엔터티를 지정합니다. 다음 예제의 연결에서는 관리자/직원 관계에 따라 직원 엔터티를 연결합니다. Type="AdventureWorks.Store.Employee" 할당에 표시된 대로 연결의 두 End는 같은 형식입니다.

  <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 요소(연결 CSDL)