TMappedEntity.DeleteAndSave Method

The method is designed for permanent deleting an entity.




procedure DeleteAndSave; overload;


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 performs a non-cascade deletion. For delete the entity cascade use the overloaded DeleteAndSave method instead.

See Also

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