【问题标题】:Entity Framework 7 add class library errorEntity Framework 7 添加类库错误
【发布时间】:2016-04-21 13:48:16
【问题描述】:

我在Entity Framework 类库中添加了附件7 指挥官。但是“project.json”文件的“dependencies”部分我遇到了以下错误。

ProLine.Sl 项目中的依赖EntityFramework.Commands 7.00-rc1-final 不支持框架.NetPlatform,Version=v5.4。

   {
     "dependencies": {
        "EntityFramework.Commands": "7.0.0-*",
        "EntityFramework.MicrosoftSqlServer": "7.0.0-rc1-final",
        "ProLine.Core": "1.0.0-*"

      },
      "commands": {
        "ef": "EntityFramework.Commands"
      },

Entity Framework 7 项目我添加了 ProLine.Bl

项目是一个多层次的项目

ProLine => 网页层

ProLine.Sl => 服务层

ProLine.Bl => 数据访问层(Entity Framework 7 类库已加载。)

ProLine.Core => 数据对象层

ProLine.Model => 模型层

【问题讨论】:

    标签: c# entity-framework entity-framework-core


    【解决方案1】:

    您可能需要将EntityFramework.Commands 添加到 ProLine.BI

    http://www.bricelam.net/2014/09/14/migrations-on-k.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-08-15
      • 2016-08-04
      • 2015-01-18
      • 1970-01-01
      • 1970-01-01
      • 2016-07-08
      • 1970-01-01
      相关资源
      最近更新 更多