EntityDAC

TMappedEntity.Delete Method

The method is designed for deleting an entity.

Class

TMappedEntity

Syntax

procedure Delete(Cascade: boolean); overload; deprecated;

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

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-2017 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback