阅读 206

Postgresql入门

下载

下载地址
需要翻墙

使用PgAdmin

PgAdmin是访问PostgreSQL数据库的图形化工具
连接数据库
91ef76c6a7efce1bac5eaec7a651f3deb48f6541
Navicat也可以连接PostgreSQL

PostgreSQL关于C#的数据驱动——Npgsql

官方资料
安装包

.net framework
EntityFramework6.Npgsql
https://github.com/npgsql/EntityFramework6.Npgsql
.net core
Npgsql.EntityFrameworkCore.PostgreSQL
Microsoft.EntityFrameworkCore.Tools
Microsoft.EntityFrameworkCore.Design
https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL

登录后复制

解决报错

The ADO.NET provider with invariant name 'Npgsql' is either not registered in the machine or application config file, or could not be loaded.


登录后复制

参考资料:
Unable to find or load Npgsql with Entity Framework
The ADO.NET provider with invariant name 'Npgsql' is either not registered in the machine or application config file, or could not be loaded. See the inner exception for details.

示例代码

.net core版本
.net版本

参考资料

EntityFramework6.Npgsql
npgsql efcore Getting Started
EF Core 入门

©著作权归作者所有:来自51CTO博客作者mb60854e935d6fd的原创作品,如需转载,请注明出处,否则将追究法律责任


文章分类
后端
版权声明:本站是系统测试站点,无实际运营。本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 XXXXXXo@163.com 举报,一经查实,本站将立刻删除。
相关推荐