ReferentialConstraint Element (Association CSDL)

In the Entity Data Model (EDM), the ReferentialConstraint element in conceptual schema definition language (CSDL) specifies the Principal Role and the Dependent Role of an association. Referential constraints affect the behavior of related objects in an ObjectContext. For more information, see Referential Constraints (Entity Framework).

In the following association the VendorAddress type is dependent on the Address type. An Address object can be related to multiple VendorAddress objects because VendorAddress simply links an Address with a Vendor. A Vendor can have more than one Address.