TAureliusManager.Refresh Method
Reloads the entity's properties and associations from the database, overwriting any in-memory changes.
Remarks
Unlike Find, which leaves an already-cached object untouched, Refresh always issues a SELECT statement and overwrites the entity's current property values with the latest data from the database.
Transient objects that were assigned to association properties before the refresh are not destroyed automatically; you must destroy them manually.
Syntax
Unit: Aurelius.Comp.Manager
procedure TAureliusManager.Refresh(Entity: TObject);
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| Entity | TObject | The managed entity to refresh. It must be attached to the manager. |