Freigeben über


2.1.20 AssociationSet End

The End element defines the two sides of the AssociationSet element. This association is defined between the two EntitySets declared in an EntitySet attribute.

The following is an example of the End element.

       <End Role="Customer" EntitySet="CustomerSet" />

The following rules apply to End elements inside an AssociationSet:

  • End element can have the Role attribute specified. All End elements have the EntitySet attribute specified.

  • The EntitySet is the Name of an EntitySet defined inside the same EntityContainer.

  • The Role of the End element MUST map to a Role declared on one of the Ends of the Assocation referenced by the End element's declaring AssociationSet.

  • Each End that is declared by an AssociationSet refers to a different Role.

  • The EntityType for a particular AssociationSetEnd is the same as or derived from the EntityType that is contained by the related EntitySet. An End element can contain a maximum of one Documentation element.

  • End can contain any number of AnnotationElement elements.

  • The child elements of End are to appear in this sequence: Documentation, AnnotationElement.

Graphic representation in table format of the rules that apply to the End element of a given AssociationSet element.

All child elements are to appear in the order indicated.