none
How do I migrate a VS2010 solution using Entity Framework 4.1 to Entity Framework 4.3.1? RRS feed

  • Question

  • I have installed the Entity Framework 4.3.1 from Nuget using the package manager.

    How do I migrate the projects to use 4.3.1 instead of 4.1?

    What references do I need to update in my projects?

    Friday, August 17, 2012 2:03 PM

Answers

  •   

    If you want to install a Netget package into multiple projects within a solution then you can do the following.

    1. Go to Solution Explorer window and right click on the solution node, top most node.
    2. In the Context window click on Manage NetGet Packages for Solution ....
    3. Find the package to install like Entity Framework and click on install button.
    4. A new window will open with all the projects in the solution with check boxes already checked. Unckeck any project you do not want to install into leaving the projects you do want to install the software in checked and then click on OK button.
    5. Accept the agreement

    After the install all the projects you had check marks next to will have the installed software in them.

      


    Fernando (MCSD)

    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".


    Friday, August 17, 2012 7:27 PM

All replies

  • Hi MDKimzey;

    To your question, "How do I migrate the projects to use 4.3.1 instead of 4.1?", when you use Netget it will replace all the 4.1 dll's to 4.3.1 dll's. So nothing you need to do at this point for this.

    To your question, "What references do I need to update in my projects?", they have already been updated when you installed them through Netget.

      


    Fernando (MCSD)

    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".

    Friday, August 17, 2012 3:17 PM
  • I noticed that System.Data.Entity in my solution projects is still version 4.030319.  Was this updated in EF 4.3?
    Friday, August 17, 2012 3:53 PM
  • Hi MDKimzey;

    In your project after installing EF 4.3.1 via Netget it should have created a file called packages.config. If you open that file you will find an entry with an id="EntityFramework" and a version="4.3.1". If this line is in the file then all dll's that needed to be updated were. 

      


    Fernando (MCSD)

    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".

    Friday, August 17, 2012 5:07 PM
  • It only applied it to one project in the solution.  Is there an update command that can be issued for the other projects in a solution?
    Friday, August 17, 2012 7:03 PM
  •   

    If you want to install a Netget package into multiple projects within a solution then you can do the following.

    1. Go to Solution Explorer window and right click on the solution node, top most node.
    2. In the Context window click on Manage NetGet Packages for Solution ....
    3. Find the package to install like Entity Framework and click on install button.
    4. A new window will open with all the projects in the solution with check boxes already checked. Unckeck any project you do not want to install into leaving the projects you do want to install the software in checked and then click on OK button.
    5. Accept the agreement

    After the install all the projects you had check marks next to will have the installed software in them.

      


    Fernando (MCSD)

    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".


    Friday, August 17, 2012 7:27 PM
  • Fernando:

    I am having problems with the  migrations scaffolding for EF 4.3.1

    I am using VS2010 on a XP pc.

    The PC itself has .NET 3.5 sp1  installed

    From inside VS2010, I used the package manager to install entity framework 4.3.1

    In the web.config of my solution, I see the entries for    EntityFramework, Version=4.3.1 

    But in looking at the packages.config, I see that the element packages has a blue  underline indicating an error

    The tool tip says The 'packages' element is not declared.

    When I try to enable migrations, the scaffolding has errors,  seems the namespace System.Data.Entity.Migrations does not exist

    Tuesday, October 9, 2012 2:34 PM
  •  

    Entity Framework 4.3.1 needs .Net Framework 4.0 and therefore will not work in .Net version 3.5.

      


    Fernando (MCSD)

    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".

    Tuesday, October 9, 2012 4:36 PM