TAureliusManager.Replicate<E> Method
Replicates a transient entity into the manager and returns the persistent (managed) entity instance with the same identifier.
Remarks
Behaves like Merge, with the difference that if no entity with the given identifier is found in the database, a new one is inserted rather than raising an exception.
Syntax
Unit: Aurelius.Comp.Manager
function TAureliusManager.Replicate(Entity: E): E;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| Entity | E | The transient entity whose data will be replicated into the manager. This object remains transient after the call. |
Returns
The persistent entity instance inside the manager, updated with the data from Entity.
Type Parameters
| Type Parameter | Description |
|---|---|
| E | The entity class type. |