Entity Framework 5 on .NET 4.0 - DatabaseGeneratedOption.Identity is undefined
See the question and my original answer on StackOverflowWe had that problem very recently on an old project, and what we did was just
- delete the EntityFramework reference in the project
- right click on the project, do a Manage NuGet packages, go to the Updates category, and click Update on the Entity Framework item that was there in the list to version 6