TCascadeType Enumeration
Specifies which persistence operations are automatically propagated from an entity to its associated objects.
Remarks
Use values of this enumeration (combined in a TCascadeTypes set) in the Cascade parameter of AssociationAttribute and ManyValuedAssociationAttribute to control which operations cascade from a parent entity to its children. The predefined constants CascadeTypeAll, CascadeTypeAllRemoveOrphan, and CascadeTypeAllButRemove cover the most common combinations.
Syntax
Unit: Aurelius.Mapping.Metadata
Members
| Name | Value | Description |
|---|---|---|
| SaveUpdate | 0 | Propagates Save and Update (merge) operations to the associated object. |
| Merge | 1 | Propagates merge operations to the associated object. |
| Remove | 2 | Propagates Remove (delete) operations to the associated object. |
| RemoveOrphan | 3 | Removes the associated object from the database when it is removed from the association (orphan removal). |
| Refresh | 4 | Propagates Refresh operations, reloading the associated object from the database. |
| Evict | 5 | Propagates Evict operations, removing the associated object from the identity map. |
| Flush | 6 | Propagates Flush operations to the associated object. |