EntityDAC

TMappedEntity.DeleteAndSave Method

The method is designed for permanent deleting an entity.

Class

TMappedEntity

Syntax

procedure DeleteAndSave(Cascade: boolean); overload;

Parameters
Cascade
The parameter defines whether to perform cascade permanent deletion of entity references and linked collections when deleting the entity.

Remarks

The method deletes the specified entity. The performed deletion is irreversible. When the method is performed, references to the entity are deleted from linked entities, the entity is deleted from collections of linked entities, physical deletion of data from corresponding database structures occurs as well. The method execution is equivalent to consequent execution of the methods: TMappedEntity.Delete, TMappedEntity.Save.

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

See Also

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