简体   繁体   English

通过Npgsql从Visual Studio 2015连接到PostgreSQL 9.5数据库

[英]connect to PostgreSQL 9.5 database from Visual Studio 2015 via Npgsql

I installed NpgsqlDdexProvider-3.1.0, through NuGet added to the project packages Npgsql v.3.0.5, EntityFramework5.Npgsql v.3.0.5, EntityFramework v.5.0.0. 我安装了NpgsqlDdexProvider-3.1.0,通过NuGet将Npgsql v.3.0.5,EntityFramework5.Npgsql v.3.0.5,EntityFramework v.5.0.0添加到项目包中。 I try to add connection to database via Server Explorer and get error: 我尝试通过服务器资源管理器添加到数据库的连接并出现错误:

Failed to find or load the registered .Net Framework Data Provider 无法找到或加载已注册的.Net Framework数据提供程序

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

My connection string: 我的连接字符串:

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

How to fix it? 如何解决?

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法使用EF 6和Visual Studio 2015 Update 3从数据库更新模型 - Unable to Update Model from Database using EF 6 and Visual Studio 2015 Update 3 无法使用Excel连接到Visual Studio 2015 SQL DB? - Can't connect to Visual Studio 2015 SQL DB using Excel? Update-Database已过时 - Visual Studio 2015 Update 3 - Update-Database is obsolete - Visual Studio 2015 Update 3 使用来自 EF Core 3.0 的 postgis 调用 postgresql 10.10 数据库的 npgsql 存储函数时出现问题 - Problem calling npgsql stored function of a postgresql 10.10 database with postgis from EF Core 3.0 无法使用 Visual Studio 2019 连接 MySQL 数据库 - Unable to connect with MySQL database with visual studio 2019 将Web App从Visual Studio(2015+)部署到Microsoft Azure - Deploying Web App from Visual Studio (2015+) to Microsoft Azure MVC 6中缺少microsoft.data.entity(Visual Studio 2015) - microsoft.data.entity missing from MVC 6 (Visual Studio 2015) 从Visual Studio 2013迁移到Visual Studio 2015时引用损坏 - Broken references when migrating from Visual Studio 2013 to Visual Studio 2015 “更新模型”向导不适用于Npgsql和Visual Studio 2013 EntityFramework - “Update Model” Wizard does not work with Npgsql and visual studio 2013 EntityFramework Visual Studio ADO .NET 无法连接到 mysql 数据库 - Visual Studio ADO .NET can't connect to mysql database
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM