PostgreSql + C#:VS2008 中的设计时支持

发布于 2024-08-06 18:57:40 字数 309 浏览 2 评论 0原文

我已经安装了 Npgsql Data Provider for .net 并按照用户手册所述执行

gacutil -i Npgsql.dll

,但我无法使用数据集设计器。当我向设计器添加 TableAdapter 时,它要求我建立一个新连接,但选项是 Access、MS Sql 或 SQLite(我已经安装的其他 dataProvider)。 PostgreSql 没有选项。另外,当我尝试向我的项目添加对 Npgsql 的引用时,我必须搜索 dll,它不会出现在“添加引用”菜单的 .Net 选项卡中。

我缺少什么?

I've installed Npgsql Data Provider for .net and I've executed

gacutil -i Npgsql.dll

as the user manual said, but I can't use the Dataset designer. When I add a TableAdapter to the designer, It ask me for a new connection, but the options are Access, MS Sql, or SQLite (other dataProviders that already i have installed). There's no option for PostgreSql. Also when I try to add a reference to Npgsql to my project, I have to search for the dll, It doesn't appear in the .Net tab of the "add a reference" menu.

What i'm missing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

何以心动 2024-08-13 18:57:40

这个帖子已经有一年了,但是,尽管如此,pgfoundry 还没有为 postgres 创建 DDEX,这就是你问题的答案......
为了创建 DDEX,我从 msdn 下载了 EFSampleProvider,它为您提供了一个开始示例。

this thread is a year old, but, nevertheless, pgfoundry haven't created yet a DDEX for postgres, something that is the answer to your question...
To create a DDEX, I downloaded the EFSampleProvider from msdn, where it gives you a sample to begin with.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文