Yes, enumeration type properties are not supported by EF4 (or CTP5); Of course, we need them, and I heard that they will be implemented in the next release.
Here is a workaround:
public enum FieldDataType { Image, RawText, Ajax } public class DefinitionDynamicField { public int FieldType { get; set; } [NotMapped] public FieldDataType FieldTypeObserver { get { return (FieldDataType)FieldType; } set { return FieldType = (int)value; } } }
We use FieldTypeObserver instead of FieldType .
This is ugly, but it works.
Nuri YILMAZ
source share