TMappingExplorer.AddDynamicProperty Method
Registers a dynamic property definition for the specified class.
Remarks
Dynamic properties allow runtime-defined properties to be mapped and queried without compile-time class modifications. This method must be called before the mapping is first loaded; calling it after the mapping has been initialized raises EMappingLoadedException.
Syntax
Unit: Aurelius.Mapping.Explorer
procedure TMappingExplorer.AddDynamicProperty(AClass: TClass; PropertyDefinition: TDynamicProperty);
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| AClass | TClass | The entity class to which the dynamic property belongs. | |
| PropertyDefinition | TDynamicProperty | The TDynamicProperty that describes the property name, container member, type, and any mapping attributes. |