Enumeration support?

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
Posts: 9
Joined: Thu 09 Jun 2011 16:23

Enumeration support?

Post by detaybey » Sun 10 Jul 2011 13:59

I've checked the tutorials and documentation and could not find a way to map enumeration values with entities. I always find myself casting enums to short/int which is kinda inconvenient.

Any help is appreciated.

Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Mon 11 Jul 2011 12:50

We have already considered the situation with Enumeration support in Entity Framework here in our blog.
There was an Enumeration support added in the Entity Framework 4.2 June 2011 CTP, but it supports only Enums of integer type, while in PostgreSQL Enums are of literal type.
Could you please specify what Enum type are you interested in?

Post Reply