Name(연결 SSDL)

EDM(엔터티 데이터 모델)에서 SSDL(저장소 스키마 정의 언어)의 Association 정의에는 디자인할 개체 모델과 매핑 사양에서 형식을 식별하는 Name 특성이 포함됩니다.

Adventure Works 모델의 Human Resources 파티션에서 다음 선언은 Employee 엔터티 선언을 보여 줍니다. 다음 Name 특성이 할당됩니다. Name="FK_Employee_Employee_ManagerID". 이 연결은 Employee 엔터티 간의 연결입니다. Employee 엔터티 중 하나는 관리자로 지정됩니다. 여기서 사용되는 명명 규칙은 연결이 데이터베이스 Employee 테이블의 ManagerID 외래 키를 기반으로 한다는 것을 나타냅니다.

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

참고 항목

개념

Association 요소(SSDL)
AdventureWorks 전체 모델(EDM)
ReferentialConstraint 요소(연결 SSDL)