如何将C#与Postgres连接? [英] How do I connect C# with Postgres?

查看:146
本文介绍了如何将C#与Postgres连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将C#与Postgres连接?我下载了npgsql数据提供程序,但无法正常运行。除了Postgres网站中的示例以外,还有更多示例吗?

How do I Connect C# with Postgres? I download the npgsql data provider but couldn't make it work. Are there more examples than the ones in the Postgres site?

干杯,

推荐答案

这是一个演练,在C#(.NET)应用程序中使用PostgreSQL(简介)


在本文中,我想向
展示使用PostgreSQL $的基础知识.NET应用程序中的b $ b数据库。
之所以如此,是因为在CodeProject
上缺少
的PostgreSQL文章,尽管事实是
是非常好的RDBMS。在PHP是我主要的
编程语言的日子里,我曾经使用PostgreSQL
,而我
认为....那么,为什么不在我的
C#应用程序中使用它。

In this article, I would like to show you the basics of using a PostgreSQL database in your .NET application. The reason why I'm doing this is the lack of PostgreSQL articles on CodeProject despite the fact that it is a very good RDBMS. I have used PostgreSQL back in the days when PHP was my main programming language, and I thought.... well, why not use it in my C# application.

除此之外,您还需要给我们一些具体的问题,以便我们可以帮助诊断问题。

Other than that you will need to give us some specific problems that you are having so that we can help diagnose the problem.

这篇关于如何将C#与Postgres连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆