EntityDAC

TMappedEntity.Delete

The method is designed for deleting an entity.

Unit

Syntax

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 is an analogue of the TCustomEntityContext.Delete method.

See Also

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