TObjectManager.Remove Method
Removes an entity from the database and detaches it from the manager.
Remarks
The entity is deleted from the database immediately (or deferred when CachedUpdates is True). Cascade options with TCascadeType.Remove are applied to associated collections and single-valued associations.
If DeferDestruction is False (default), the entity object is destroyed after removal. If DeferDestruction is True, the object is held in an internal list and destroyed when the manager is destroyed.
Syntax
Unit: Aurelius.Engine.ObjectManager
procedure TObjectManager.Remove(Entity: TObject);
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| Entity | TObject | The persistent entity to delete. Must be attached to this manager. |