EF / Postgres SQL数据库优先方法可能吗? [英] EF/Postgres SQL database-first approach possible?

查看:81
本文介绍了EF / Postgres SQL数据库优先方法可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

经过数小时的搜索,我有点失望。是否有人可以确认(或不可以)使用现有的Postgres SQL数据库使用EF数据库优先的方法(我的意思是使用VS EDMX degigner)?

After hours of searching, I am little bit disappointed. Can anybody confirm (or not) that using EF database-first approch (I mean, using the VS EDMX degigner) is possible with an existing Postgres SQL database?

某些要求:


  • 我想使用ngsql提供程序,因为它是免费的(但我不确定它是否以数据库优先的方式工作)
  • 我不想使用Devart Connect提供程序,因为它不是免费的,并且用于个人项目。我可以考虑使用快速版本,但我认为它不适用于设计模式。

欢呼声

推荐答案

是可以的。 Google快速搜索找到了演练

Yes it is possible. A quick Google search found a walkthrough which did not suggest there were any special gotchas.

我会注意到我对代码优先的ORM框架表示怀疑,因为我认为它们忽略了数据库设计的关键方面,因此鼓励尚未为未来进行真正规划的数据库,因此我认为这在某种程度上是一种专用工具,但答案似乎是肯定的,它可行。

I will note I am quite sceptical of code first ORM frameworks as I think that they leave out key aspects of database design and thus encourage databases where no real planning for the future has occurred and so I think it is somewhat of a specialized tool, but the answer seems to be yes, it works.

这篇关于EF / Postgres SQL数据库优先方法可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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