EntityDAC

TMappedEntity.Delete Method

The method is designed for deleting an entity.

Class

TMappedEntity

Syntax

procedure Delete; overload;

Remarks

The method deletes the specified entity. The performed deletion is recoverable. When the method is performed, references to the entity are not deleted from linked entities, the entity is not deleted from collections of linked objects. Physical deletion of data from corresponding database structures doesn't occur as well.

To cancel entity deletion, the TMappedEntity.Cancel method is used.

To submit entity deletion, the TMappedEntity.Save method is used.

To permanently delete an entity, the TMappedEntity.DeleteAndSave method is used.

The method performs a non-cascade deletion. To delete the entity cascade, use the overloaded Delete method instead.

See Also

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