Enum Support for Entity Framework Database First
.net, .net-4.5, edmx, entity-framework, enums
Solution
What I wound up doing is changing the column type to int in the database then I went into the edmx and updated model from database, then I went and added a enum type and then changed the column type in the edmx designer to be of type of that enum. Reupdated the poco's and everything Works good!
Problem
I can find a bunch of tutorials on how to implement enum support for model first and code first like these: http://msdn.microsoft.com/en-us/data/jj248772.aspx http://msdn.microsoft.com/en-us/data/hh859576.aspx Can anyone explain to me or provide me with some instructions on how to properly implement enum support for database first applications. I'd imagine I'd have to start in the edmx designer and right click one of my columns in the tables and convert to enum? Thanks for any advice. I'm using .NET 4.5 and Enity Framework 5.0