EntityDAC

TMappedEntity.Save Method

The method is designed for saving changes made in an entity instance.

Class

TMappedEntity

Syntax

procedure Save(Cascade: boolean); overload;

Parameters
Cascade
The parameter defines whether to perform cascade saving of changes of entity references and linked collections when saving entity changes.

Remarks

The method performs permanent saving of modifications made in an entity instance. If the entity was deleted with TMappedEntity.Delete, then when executing this method, there occurs deletion of references to this entity in linked entities, deletion of the entity from linked entities collections, as well as deletion of data from corresponding database structures.

The method is the analogue of the TCustomEntityContext.Save method.

See Also

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback