zoukankan      html  css  js  c++  java
  • EntityFramework 学习 一 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.

  • 相关阅读:
    Vue Bug
    Vue.js(一)
    Node.js简介
    对请求链接的URLEncode处理
    淘宝开放平台
    Java基础(一)
    计算机基础知识
    Unity中对象池的使用
    希尔排序算法
    插入排序算法
  • 原文地址:https://www.cnblogs.com/lanpingwang/p/6622424.html
Copyright © 2011-2022 走看看