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.

  • 相关阅读:
    pysocketserver
    协程
    py模块和包
    py网络编程
    GridView绑定技巧终结者
    iOS 证书/私钥/代码签名/描述文件
    八拜之交
    POJ3230(Travel)
    POJ2553(The Bottom of a Graph)
    动态规划的实质
  • 原文地址:https://www.cnblogs.com/purplefox2008/p/5649200.html
Copyright © 2011-2022 走看看