Enums declarations are not generated in Delphi

Enums declarations are not generated in Delphi

Postby 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.
davidizadar
 
Posts: 4
Joined: Thu 20 Apr 2017 19:44

Re: Enums declarations are not generated in Delphi

Postby 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.
AlexP
Devart Team
 
Posts: 5525
Joined: Tue 10 Aug 2010 11:35


Return to EntityDAC