How to work with Enums in Entity Framework?

.net entity-framework enums

Question

What is the best way to work with Enums in Entity Framework?

Remarks: I'm using EF 3 and Firebird.

Popular Answer

There is a somewhat better way to do it in EF 4. Unfortunately, it won't work in EF 1.

Here's another approach.

Update: Real enum support was added in the June 2011 EF CTP.



Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why