Table of Contents

TObjectManager.Update Method

Attaches a transient entity to the manager so that subsequent Flush calls will persist its current state to the database.

Remarks

Unlike loading an entity via Find, Update does not retrieve the original state from the database. Therefore, when Flush is later called, all persistent properties of the entity are written, not only those that changed. Raises an exception if another persistent object with the same identifier is already attached to this manager; in that case, use Merge instead.

Syntax

Unit: Aurelius.Engine.ObjectManager

procedure TObjectManager.Update(Entity: TObject);

Parameters

<-> Parameter Type Description
Entity TObject The transient entity to attach. Must have a valid identifier value.

See also