TDynamicProperty Class
Describes a runtime-defined property to be mapped to a database column or association without requiring a compile-time class modification.
Remarks
A dynamic property is stored inside an existing member of the entity class called the container (identified by ContainerName). The property is accessed by its logical name (PropertyName) and typed via PropertyType.
Mapping metadata is attached by calling AddColumn or AddAssociation after construction. Register the completed definition with TMappingExplorer.AddDynamicProperty before the mapping is first loaded.
Syntax
Unit: Aurelius.Mapping.Setup
TDynamicProperty = class(TObject);
Constructors
| Name | Description |
|---|---|
| Create | Overloaded Create(string, string, PTypeInfo) Create(string, string, PTypeInfo, AbstractColumnAttribute) |
Methods
| Name | Description |
|---|---|
| AddAssociation | Attaches an association-mapping attribute to this dynamic property. |
| AddColumn | Attaches a column-mapping attribute to this dynamic property. |
| Clone | Returns a deep copy of this dynamic property, including all attached mapping attributes. |
| GetAttributes | Returns all mapping attributes attached to this dynamic property. |
Properties
| Name | Description |
|---|---|
| ContainerName | Gets or sets the name of the container member on the entity class that physically stores the dynamic property value. |
| PropertyName | Gets or sets the logical name used to identify this dynamic property in queries and mapping. |
| PropertyType | Gets or sets the RTTI type information for the dynamic property's value type. |