TObjectManager.SaveOrUpdate Method
Saves or updates an entity depending on whether it has an identifier value.
Remarks
If the entity does not have an identifier value, Save is called.
If the entity already has an identifier value, Update is called.
This method does not work when the identifier generator is TIdGenerator.None, because in that case an identifier is always present and Update would be called even for new objects.
Syntax
Unit: Aurelius.Engine.ObjectManager
procedure TObjectManager.SaveOrUpdate(Entity: TObject);
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| Entity | TObject | The entity to save or update. |