Enums declarations are not generated in Delphi

Discussion of open issues, suggestions and bugs regarding EntityDAC
Post Reply
davidizadar
Posts: 4
Joined: Thu 20 Apr 2017 19:44

Enums declarations are not generated in Delphi

Post by davidizadar » 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.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Enums declarations are not generated in Delphi

Post by AlexP » Tue 25 Apr 2017 08:04

Hello,

Support for Enum types is added to our roadmap, but we can't tell the exact time frame for its implementation.

Post Reply