TAureliusManager.Remove Method
Removes an entity from the database and detaches it from the manager.
Remarks
The entity is deleted from the database immediately. Associated objects with delete cascade defined in their mapping attributes are also removed.
The entity instance is destroyed unless TObjectManager.DeferDestruction is True, in which case destruction is deferred until the manager itself is destroyed.
Syntax
Unit: Aurelius.Comp.Manager
procedure TAureliusManager.Remove(Entity: TObject);
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| Entity | TObject | The managed entity to remove. It must be attached to the manager. |