如何在asp.net mvc 2中使用postgresql和ado.net实体框架

发布于 2024-12-18 20:09:21 字数 560 浏览 3 评论 0原文

在我当前的项目中,我们使用 Visual Studio 2008、SQL Server 2008、MVC 2 和 ado.net 实体框架(ado.net 实体数据模型)、linq 并开发 Web 应用程序。这个应用程序运行良好。

现在,我们想使用开源的PostgreSQL,那么是否可以将数据库从Sql server 2008更改为PostgreSQL。

我检查了 devartnpgsql 使用实体数据模型实现与postgresql数据库的连接。

当我检查devart时,它在专业版(已获得许可)中支持实体数据模型。我们不想使用任何许可的组件。

当我检查 npgsql 时,没有示例或链接解释如何使用 ado.net 实体框架连接到 postgresql。

现在我的问题是,是否可以实现postgresql、ado.net实体模型、linq???

In my current project, we are using visual studio 2008, sql server 2008, mvc 2 with ado.net entity framework (ado.net entity data model), linq and developing a web application. This application working fine.

Now, we want to use PostgreSQL which is open source, so is it possible to change the database from Sql server 2008 to PostgreSQL.

I checked devart and npgsql to implement the connectivity to postgresql database using entity data model.

When I checked devart, it supports entity data model in professional edition (which is licensed). And we dont want to use any licensed components.

When I checked npgsql, there are no examples or links which explain about connecting to postgresql using ado.net entity framework.

Now my question is, is it possible to implement postgresql, ado.net entity model, linq ???

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

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

发布评论

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

评论(1

百思不得你姐 2024-12-25 20:09:21

几个月前,我使用 postgresql、npgsql、EF 和 linq 参与了一个项目:所以是的,这是可能的,但需要一些工作来设置它。

http://npgsql.com/ 上,很少有关于如何处理它的文章,但现在该网站似乎页面存在一些映射问题:)
所以我链接到你谷歌缓存的:

第 1 部分

第 2 部分

Few months ago I worked on a project using postgresql, npgsql, EF and linq: so yes, is possible, but required a bit of work to set up it.

On http://npgsql.com/ there are few articles on how to handle it, but now the web site seem to have some mapping problems with the pages :)
So I link to you the google cached ones:

Part1

Part2

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