How to upgrade an existing project to entity framework 5.0

I have an Entity Framework project. I want to upgrade it to EF 5. I used NuGet with this command:

PM> Install-Package EntityFramework 

to install EF 5.0. He added the lines to my configuration file:

 <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> 

Is updating my project enough to EF 5.0? Is this the right way to do an update?

+4
source share
1 answer

You need to modify your project to use .Net 4.5 to take advantage of the many EF5 enhancements. Here is a blog from the team. http://blogs.msdn.com/b/adonet/archive/2012/08/15/ef5-released.aspx

Compatibility

This version of NuGet is fully compatible with Visual Studio 2010 and Visual Studio 2012 and can be used for applications targeting .NET 4.0 and 4.5.

Some features are only available when writing an application designed for .NET 4.5. This includes enumeration support, spatial data types, table functions, and performance improvements.

+6
source

Source: https://habr.com/ru/post/1435285/


All Articles