How to get listings working in mvc4 with Entity Framework 5 Beta 2?

I used Nuget to upgrade to Entity Framework 5.0.0-beta2 in my MVC3 → MVC4 project.

I'm trying to get enums to work, and every hyphen I add just ignores the enum fields.

I found this in the web.config file:

  <configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />

How to get this link in EF5?

Is that what I need for enums to work?

+5
source share
2 answers

I found the answer to this on Julia Lerman's blog .

The solution is to remove the Nuget EF5 package, upgrade the application to the target .net 4.5, and then add the Nuget beta for EF5 again. Apparently when you target .net 4.0, the Nuget package will add EF4.4 instead of 5.

+7

, .NET 4.5, .NET 4.0. VS 11, EF 5 .NET 4.5.

+2

All Articles