TObjectDataSet - TFieldDef properties question
Issue #323
resolved
Hi,
I’m trying to use Spring4D TObjectDataSet class and I have question. Is it possible to add attributes for properties to define properties values for TFieldDef class? I think about TFieldDef class properties like Size for string field, Precision and Scale for number field or Required for all fields. Maybe it could be added an event which allows additionaly prepare these values for particular properties. It could be fired from DoGetFieldType procedure. In event everyone could to use his own attributes to define particular properties values.
Comments (4)
-
repo owner -
repo owner - changed status to open
-
repo owner -
assigned issue to
- marked as enhancement
- changed milestone to 2.0
-
assigned issue to
-
repo owner - changed status to resolved
added event to TObjectDataSet to customize added TFieldDef from their according TRttiProperty (resolves
#323)→ <<cset b037bf5fef22>>
- Log in to comment
Hardcoding any attributes support for specifying all kinds of information is not a good idea but I like the suggestion about the event where everyone can then handle their custom attributes.