Table of Contents

TAureliusManager.Save Method

Saves (inserts) a new entity object into the database.

Remarks

After a successful save, the entity becomes managed (persistent) by the encapsulated TObjectManager and will be destroyed when the manager is destroyed. Associated objects may also be saved depending on cascade settings defined in their mapping attributes.

Syntax

Unit: Aurelius.Comp.Manager

procedure TAureliusManager.Save(Entity: TObject);

Parameters

<-> Parameter Type Description
Entity TObject The entity object to be saved. It must not have an identifier value set, unless the identifier generator is TIdGenerator.None.

See also