locked
How To Upgrade Entity Framework 4 to EF 6.0 in Visual Studio 2010 RRS feed

  • Question

  • User708137807 posted

    HI TEAM , 

     I TRIED TO UPGRADE  TO EF 6.0 USING NUGET PACKAGE  , BUT IT IS UNABLE TO WORK . PLEASE LET ME KNOW THE STEPS , TO UPGRADE EF 4.0 TO EF 6.0 IN VS 2010 . 

    Tuesday, April 21, 2015 11:45 PM

Answers

  • User158442211 posted

    Hi Swap_PG

    Official answer from Microsoft on the ADO.NET blog:

    currently the EF6 projects and the source code are compatible with Visual Studio 2012 and .NET 4.5 only. We are planning to make it possible to target .NET 4.0 and considering making it buildable from Visual Studio 2010 but we just haven't done the work yet.

    http://blogs.msdn.com/b/adonet/archive/2012/07/19/entity-framework-and-open-source.aspx

    Hoping my reply could be helpful to you.

    Best regards,
    Amor

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, April 22, 2015 2:10 AM

All replies

  • User-821857111 posted

    What do you mean when you say it didn't work? Did you get errors? If so, what were they? 

    Wednesday, April 22, 2015 2:06 AM
  • User158442211 posted

    Hi Swap_PG

    Official answer from Microsoft on the ADO.NET blog:

    currently the EF6 projects and the source code are compatible with Visual Studio 2012 and .NET 4.5 only. We are planning to make it possible to target .NET 4.0 and considering making it buildable from Visual Studio 2010 but we just haven't done the work yet.

    http://blogs.msdn.com/b/adonet/archive/2012/07/19/entity-framework-and-open-source.aspx

    Hoping my reply could be helpful to you.

    Best regards,
    Amor

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, April 22, 2015 2:10 AM
  • User-1767171539 posted

    Hi,I found following link:

    http://stackoverflow.com/questions/19239140/does-entity-framework-6-support-net-4-0

    Please check the page.

    I just wonder for the error you are getting.

    I hope you are trying to update from Manager Windows of NuGet as follows:

    1) Open Manager NuGet Package Windows from From Tool

    2) Click on Update Menu on the left, which will list of the packages for update.

    Wednesday, April 22, 2015 2:30 AM
  • User61956409 posted

    Hi Swap_PG,

    Thanks for your post.

    Swap_PG

    PLEASE LET ME KNOW THE STEPS , TO UPGRADE EF 4.0 TO EF 6.0 IN VS 2010 . 

    Install the EF6 NuGet package:

    1.Right-click on your project and select Manage NuGet Packages...

    2.Under the Online tab select EntityFramework and click Install

    Note: If a previous version of the EntityFramework NuGet package was installed this will upgrade it to EF6.

    Alternatively, you can run the following command from Package Manager Console:

    PM> Install-Package EntityFramework

    This link will show you details about Upgrading to EF6.

    https://msdn.microsoft.com/en-us/data/upgradeef6.aspx

    Best Regards,

    Fei Han

    Wednesday, April 22, 2015 11:08 PM