Enums declarations are not generated in Delphi
Posted: Mon 24 Apr 2017 23:30
It is possible to define an Enum type with several members, but no matter what you do with the checkbox IsExternal, the generated code does not have the declaration of the enum type. It is something as simple as:
<Enum Type> = (Member1, Member2, ..., MemberN)
or
<Enum Type> = (Member1[ = Value1], Member2[ = Value2], ..., MemberN[ = ValueN])
if using the optional values.
Even worse, when loading the generated XML mapping an error is triggered:
Unknown <Column> attribute type: <Enum Type>
If the feature is not enabled for Delphi, just hide it from the Entity Developer diagram.
<Enum Type> = (Member1, Member2, ..., MemberN)
or
<Enum Type> = (Member1[ = Value1], Member2[ = Value2], ..., MemberN[ = ValueN])
if using the optional values.
Even worse, when loading the generated XML mapping an error is triggered:
Unknown <Column> attribute type: <Enum Type>
If the feature is not enabled for Delphi, just hide it from the Entity Developer diagram.