2.1.12 ReferentialConstraint Role

When defining ReferentialConstraint elements, Role MUST be used to indicate which end of the association is the Principal and which end of the relationship is the Dependent. Thus, the ReferentialConstraint contains two Role definitions: the Principal and the Dependent.

ReferentialConstraintRole usage conforms to the ordering rules for the child elements of ReferentialConstraint, as defined in ReferentialConstraint (section 2.1.11).

The following example of the ReferentialConstraintRole defines Principal and Dependent elements.

     <ReferentialConstraint>
       <Principal Role="Employee">
         <PropertyRef Name="EmployeeID" />
       </Principal>
       <Dependent Role="Manager">
         <PropertyRef Name="ManagerID" />
       </Dependent>
     </ReferentialConstraint>