如何在asp.net mvc 2中使用postgresql和ado.net实体框架
在我当前的项目中,我们使用 Visual Studio 2008、SQL Server 2008、MVC 2 和 ado.net 实体框架(ado.net 实体数据模型)、linq 并开发 Web 应用程序。这个应用程序运行良好。
现在,我们想使用开源的PostgreSQL,那么是否可以将数据库从Sql server 2008更改为PostgreSQL。
我检查了 devart 和 npgsql 使用实体数据模型实现与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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
几个月前,我使用 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