The Problem
- I made a DB model using EF 4 in VS 2010.
- I wanted an enum, realised 4.1 had this, so downloaded and installed
4.1 update 1 from MS. (from http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=26825) - Re-opened my project, right clicked an Int32 field, there is no
“convert to enum” option like examples on blogs about EF 4.1. (like http://blogs.msdn.com/b/adonet/archive/2011/06/30/walkthrough-enums-june-ctp.aspx) - Looked at many websites as to cause, found nothing.
- Created a brand new test project, created entity diagram model-first,
tried again, still no option.
Any ideas?
The June CTP is not Entity Framework 4.1, it is the preview of the next version. Enums are not in EF 4.1, they were a planned feature but they removed it when 4.1 was released.
You will need to download the June CTP, you can download it here but you do so at your own risk as this is pre-release software and not designed for use in a production environment:
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=26660