【问题标题】:What is the reference for ´System.Data.Entity.Infrastructure´?“System.Data.Entity.Infrastructure”的参考是什么?
【发布时间】:2012-11-28 09:38:15
【问题描述】:

使用Entity Framework Power Tools Beta 2 extension,它会生成具有以下导入的模型类:

using System.Data.Entity.Infrastructure;

我需要在使用 Visual Studio 2010 的项目中包含哪些参考资料?

目前,我有以下参考资料

  • log4net
  • 系统配置
  • System.Core
  • System.Data
  • System.Data.Entity
  • System.Web
  • System.Web.Mvc
  • System.XML

Add Reference 对话框中,我有以下内容:

【问题讨论】:

    标签: visual-studio-2010 ef-code-first entity-framework-5


    【解决方案1】:

    不要通过“添加引用”对话框添加 EF 库(它是旧版本) 您需要添加最新版本的 NuGet 包“EntityFramework”。

    【讨论】:

    • 这样就完成了!我删除了通过“添加引用”diagog 添加的旧版本,然后添加了 NuGet 包“EntityFramework”(版本 5)。谢谢!
    • 这也适用于 6.0 版
    • 但是我在“EntityFramework”nuget包中没有找到这个DLL“system.data.entity.design”,你能帮帮我吗?
    • 你需要这个 DLL 做什么?
    猜你喜欢
    • 2018-07-17
    • 1970-01-01
    • 2011-11-30
    • 2018-05-30
    • 1970-01-01
    • 1970-01-01
    • 2017-11-04
    • 2019-08-24
    • 2010-09-11
    相关资源
    最近更新 更多