Table of Contents

TAureliusManager.Update Method

Attaches a transient entity object to the manager so that its changes will be persisted to the database when Flush is called.

Remarks

No data is retrieved from the database when Update is called. The manager has no knowledge of the original state of the object, so all persistent properties of the entity will be written to the database on flush. If a managed object with the same identifier already exists in the manager, an exception is raised; use Merge in that case instead.

Syntax

Unit: Aurelius.Comp.Manager

procedure TAureliusManager.Update(Entity: TObject);

Parameters

<-> Parameter Type Description
Entity TObject The transient entity instance to attach. All its persistent properties will be updated in the database on the next Flush call.

See also