Table of Contents

TAureliusManager.SaveOrUpdate Method

Saves or updates an entity depending on whether it has an identifier value set.

Remarks

This method does not work when the identifier generator is set to TIdGenerator.None, because in that case the entity always has an identifier value and the component cannot determine whether to insert or update.

Syntax

Unit: Aurelius.Comp.Manager

procedure TAureliusManager.SaveOrUpdate(Entity: TObject);

Parameters

<-> Parameter Type Description
Entity TObject The entity to save or update. If the entity has an identifier value, Update is called; otherwise Save is called.

See also