Table of Contents

TObjectManager.Flush Method

Overloads

TObjectManager.Flush

Persists all pending changes from all managed entities to the database.

Remarks

Iterates through all entities tracked by this manager, detects which properties have changed since they were last loaded or saved, and issues the corresponding UPDATE statements. Collection changes (items added or removed) are also flushed. All operations are wrapped in a transaction when UseTransactions is True.

Syntax

Unit: Aurelius.Engine.ObjectManager

procedure TObjectManager.Flush; overload;

See also

TObjectManager.Flush(TObject)

Persists pending changes for a single entity to the database.

Remarks

Only the changes made to the specified entity are persisted; other modified entities in the manager remain unflushed. Cascade options with TCascadeType.Flush determine whether associated objects are also flushed.

Syntax

Unit: Aurelius.Engine.ObjectManager

procedure TObjectManager.Flush(Entity: TObject); overload;

Parameters

<-> Parameter Type Description
Entity TObject The managed entity whose changes should be flushed.

See also