【问题标题】:connect to PostgreSQL 9.5 database from Visual Studio 2015 via Npgsql通过 Npgsql 从 Visual Studio 2015 连接到 PostgreSQL 9.5 数据库
【发布时间】:2016-12-08 12:56:00
【问题描述】:

我安装了NpgsqlDdexProvider-3.1.0,通过NuGet添加到项目包Npgsql v.3.0.5、EntityFramework5.Npgsql v.3.0.5、EntityFramework v.5.0.0。我尝试通过服务器资源管理器添加到数据库的连接并得到错误:

未能找到或加载已注册的 .Net Framework Data Provider

我的数据提供者:.Net Framework Data Provider for PostgreSQL (Npgsql Ddex Provider)

我的连接字符串:

Host=localhost;Username=postgres;Password=1;Database=postgres;

如何解决?

【问题讨论】:

    标签: entity-framework visual-studio postgresql database-connection npgsql


    【解决方案1】:

    您必须将提供程序的 dll 添加到 GAC 并组装您的 IDE。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-02-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-06-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多