【问题标题】:Can't Import libraries for SQLhelper class无法为 SQLhelper 类导入库
【发布时间】:2015-02-17 15:49:14
【问题描述】:

我正在尝试删除重复代码以连接到 SQL 数据库、创建存储过程参数等。

我发现SQLHelper 类需要企业库。所以当我们使用 NuGet 时,我下载了包并在项目中引用了它。

然后我想用“使用”导入它,但我无法导入以下内容:

using Microsoft.ApplicationBlocks.Data;

因为它找不到程序集。

借助 Enterprise Library 6,NuGet 自动引用了两个程序集:Microsoft.Practices.EnterpriseLibrary.CommonMicrosoft.Practices.EnterpriseLibrary.Data

在这两个下我都找不到SQLHelper 类。

谁能告诉我我做错了什么,我该如何使用这个类?

谢谢!

【问题讨论】:

    标签: c# sql nuget enterprise-library sqlhelper


    【解决方案1】:

    我为 sqlhelper (databasehelper) 制作了一个 nuget 包:https://www.nuget.org/packages/MsSqlHelper/

    我认为这将包含您需要的一切。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-11-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-31
      • 2021-09-08
      相关资源
      最近更新 更多