The Entity Framework will not support enum's until EF 5.0 (scheduled to ship soon).
Entity Framework 4.2 enum support
http://blogs.msdn.com/b/efdesign/archive/2011/06/29/enumeration-support-in-entity-framework.aspx
WCF Data Services (and the oData standard) to not support enums
We understand that enums are common, unfortunately they never met tha bar so far. They are rather high on our list of things to do next though
(See: https://stackoverflow.com/a/3571378/141172)
I have begun a new project and am replacing enum's with something like:
public static class MyEnum
{
public const int MyValue = 0;
public const int AnotherValue = 1;
}
I'm sacrificing the guarantee that enum's provide that only defined values will be assigned in order to utilize important (and at this point fairly mature) infrastructure services.
Is there a better way to handle lagging enum support? Once EF and WCF Data Services add enum support, is there likely to be another important framework on the horizon that will introduce enum support as slowly as these two have?