
Entity Framework does not support enums.
Let that sink in for a bit. Enums, not some newfangled programming methodology like lambdas. Enums. Entity. Framework. Doesn’t. Support. Enums. Even in .NET 4.0.
Sorry, MS, did you say this system was an ORM or an April Fools Joke?
There is a fairly complex workaround by Joachim Anderson at DevTalk that requires the creation of custom wrapper classes for each enum type. For your POCO classes.
Have shut down Visual Studio in disgust, and am considering tossing Entity Framework. Again. Because MS just don’t seem to have the slightest grasp of what’s important for an ORM. Again. The impedance mismatch between Entity Framework and a real ORM is just too high. Again.
Maybe I should go sign that Vote of No Confidence thing again.