New Posts New Posts RSS Feed: Enums in Entities
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Enums in Entities

 Post Reply Post Reply
Author
bradirby View Drop Down
Newbie
Newbie
Avatar

Joined: 31-May-2009
Location: SF Bay ARea
Posts: 2
Post Options Post Options   Quote bradirby Quote  Post ReplyReply Direct Link To This Post Topic: Enums in Entities
    Posted: 29-Jun-2011 at 4:54am
EF does not support enums in the entities.  Does DevForce support this?

Back to Top
DenisK View Drop Down
IdeaBlade
IdeaBlade


Joined: 25-Aug-2010
Posts: 715
Post Options Post Options   Quote DenisK Quote  Post ReplyReply Direct Link To This Post Posted: 29-Jun-2011 at 1:06pm
Hi bradirby;

DevForce supported enums back in Classic days but we haven't carried the feature forward and haven't seen enough demand to implement it again.

You're right that EF doesn't support enums but they provide workarounds that should also be applicable in DF. Here's a couple of findings.

Using Custom Property (will not work with LINQ query) - http://cticoder.wordpress.com/2008/08/16/using-enums-with-entity-framework/



Hope this helps.
Back to Top
DenisK View Drop Down
IdeaBlade
IdeaBlade


Joined: 25-Aug-2010
Posts: 715
Post Options Post Options   Quote DenisK Quote  Post ReplyReply Direct Link To This Post Posted: 30-Jun-2011 at 5:52pm
Back to Top
stephenmcd1 View Drop Down
DevForce MVP
DevForce MVP


Joined: 27-Oct-2009
Location: Los Angeles, CA
Posts: 166
Post Options Post Options   Quote stephenmcd1 Quote  Post ReplyReply Direct Link To This Post Posted: 30-Jun-2011 at 6:04pm
Originally posted by DenisK

DevForce supported enums back in Classic days but we haven't carried the feature forward and haven't seen enough demand to implement it again.

Consider this a vote for Dev Force to support enums.  We'd like to be using enums in many places in our model but the current limitations you mentioned make it too much effort.  But if EF supports this natively at some point, it would be great if Dev Force could too!

-Stephen
Back to Top
DenisK View Drop Down
IdeaBlade
IdeaBlade


Joined: 25-Aug-2010
Posts: 715
Post Options Post Options   Quote DenisK Quote  Post ReplyReply Direct Link To This Post Posted: 05-Jul-2011 at 11:32am
Thanks for the vote and feedback Stephen. I'll let the development team know about this.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down