RegisterEntity Method
Ensures the specified entity class is referenced so that the Delphi linker includes it in the final executable.
Remarks
Aurelius discovers entity classes at runtime through RTTI. If a class is never explicitly referenced in application code, the linker optimizer may remove it, making it invisible to Aurelius. Call RegisterEntity in the initialization section of each entity unit to prevent this. Raises an exception if Clazz is nil.
Syntax
Unit: Aurelius.Mapping.Attributes
procedure RegisterEntity(const Clazz: TClass);
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | Clazz | TClass | The entity class to register. Must not be nil. |