TObjectManager.Refresh Method
Reloads an entity's properties from the database, discarding any in-memory changes.
Remarks
Unlike Find, which leaves an already-cached entity untouched, Refresh always executes a SELECT statement and overwrites the entity's properties with the values read from the database. Transient association objects that were assigned to properties are not automatically destroyed; that responsibility falls on the caller.
Cascade options with TCascadeType.Refresh are applied to associated objects.
Syntax
Unit: Aurelius.Engine.ObjectManager
procedure TObjectManager.Refresh(Entity: TObject);
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| Entity | TObject | The persistent entity to refresh. Must be attached to this manager. |