TAureliusEntityField Class
A specialized field type that holds an object reference in a dataset record.
Remarks
Entity fields represent object associations (many-to-one properties) in an entity class.
Instead of holding a scalar value, an entity field stores a pointer to the associated object. Use the AsObject property or the generic AsEntity<T> method to access the underlying object reference.
Entity fields are not suitable for direct visual binding in data-aware controls; for that purpose, use sub-property fields with dot notation (e.g., Customer.Name).
Syntax
Unit: Aurelius.Bind.BaseDataset
TAureliusEntityField = class(TVariantField);
Methods
| Name | Description |
|---|---|
| AsEntity<T> | Returns the object held by this entity field, cast to the specified class. |
| SetAsEntity<T> | Sets the object reference held by this entity field to the given typed value. |
Properties
| Name | Description |
|---|---|
| AsObject | Gets or sets the object reference held by this entity field. |