Table of Contents

TObjectManager.Evict Method

Detaches an entity from the manager without deleting it from the database.

Remarks

After eviction the entity becomes transient. When OwnsObjects is True, the evicted entity is no longer owned by the manager and must be destroyed manually or reattached via Update. Cascade options with TCascadeType.Evict are applied to associated objects.

Syntax

Unit: Aurelius.Engine.ObjectManager

procedure TObjectManager.Evict(Entity: TObject);

Parameters

<-> Parameter Type Description
Entity TObject The entity to evict. If not currently attached, no action is performed.

See also