Compartir a través de


2.1.10 OnDelete

The OnDelete element is a trigger that is associated with a relationship. The action is performed on one end of the relationship when the state of the other side of the relationship changes.

The following is an example of the OnDelete element.

   <Association Name="CProductCategory">
     <End Type="Self.CProduct" Multiplicity="*" />
     <End Type="Self.CCategory" Multiplicity="0..1">
       <OnDelete Action="Cascade" />
     </End>
   </Association>

The following rules apply to the OnDelete element:

  • OnDelete MUST specify the action.

  • OnDelete can contain any number of AnnotationAttribute attributes. The full names of the AnnotationAttribute attributes cannot collide.

  • The OnDelete element can contain a maximum of one Documentation element.

  • OnDelete can contain any number of AnnotationElement elements.

  • Child elements of OnDelete are to appear in this sequence: Documentation, AnnotationElement.

Graphic representation in table format of the rules that apply to the OnDelete element.

All child elements are to appear in the order indicated.