zoukankan      html  css  js  c++  java
  • Entity Framework Tutorial Basics(31):Migration from EF 4.X

    Migration from Entity Framework 4.1/4.3 to Entity Framework 5.0/6.0

    To migrate your existing Entity Framework 4.x project to Entity Framework 5.0 using VS2012, first target .NET Framework 4.5:

    Entity Framework Tutorial

    Second, remove the existing Entity Framework 4.1/4.3 reference and install Entity Framework 5.0 from NuGet:

    Entity Framework Tutorial

    Search for Entity Framework online and install it. Make sure that the version is 5.0:

    Entity Framework Tutorial

    If you check the version of the Entity Framework reference, then it should be 5.0.0.0:

    Entity Framework Tutorial

    If you open your existing data model (.edmx) file then it may give an error, as it is still using EDMX version 2.0 (open edmx as XML). Click on the 'Modify' link on the designer and it will be modified to version 3.0.

    Now your existing Entity Framework project will work in Entity Framework 5.0 without any major changes.

  • 相关阅读:
    闭包
    保存数据
    Browers Object Model
    JavaScript中的null和undefined
    魔法查询函数
    《黑客与画家》 读书感想
    CakePHP查询数据
    HDFS写入和读取流程
    回调函数
    JAVA中的指针
  • 原文地址:https://www.cnblogs.com/purplefox2008/p/5649200.html
Copyright © 2011-2022 走看看