AtomsFramework Persistence Layer Reference Guide

AssociationMap.SaveAutomatic Property

[This is preliminary documentation and subject to change.]

The association will cause the target object(s) to be saved when the source object is saved.

[Visual Basic]
Public Property SaveAutomatic As Boolean
[C#]
public bool SaveAutomatic {get; set;}

Property Value

True if the target objects should be saved when the source object is saved.

Remarks

When the source object is saved any target objects will also be saved.

Note that this occurs only if the object is actually saved and not just because a call to the save method was made. The normal checking of the dirty flag and isValid flag still occurs, so if the source object is not dirty, but the target objects are nothing will occur.

This property in conjuntion with the DeleteAutomatic and RetrieveAutomatic properties can be used to implement object aggregations and compostions

See Also

AssociationMap Class | AtomsFramework Namespace