【问题标题】:Missing PostgreSQL data provider in Visual Studio 2010Visual Studio 2010 中缺少 PostgreSQL 数据提供程序
【发布时间】:2014-01-29 12:53:58
【问题描述】:

我想继续我之前的问题SQLite database file type missing from Visual Studio 2010 data source options

这次我想创建一个到 PostgeSQL 数据库的连接,并面临同样的数据源丢失问题。

到目前为止我有:

  1. 安装了 PostgreSQL 服务器并创建了一个新数据库
  2. 在 Visual Studio 2010 下,在 PMC 中,我运行“Install-Package Npgsql”
  3. 在 app.config 文件中,我通过添加 DbProviderFactories 块注册了 Npgsql 数据提供程序

然后,我尝试通过从数据库生成 ADO.NET 实体数据模型(使用 Entity Framework 4)从 Visual Studio 创建它。我正在尝试连接到 PostgreSQL 数据库,但我不知道如何连接到它。低于我所拥有的:

如何连接到 PostgreSQL 数据库?

【问题讨论】:

    标签: .net visual-studio-2010 entity-framework postgresql datasource


    【解决方案1】:

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-06-10
    • 2012-09-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-02
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多