经过数小时的搜索,我有点失望。是否有人可以确认(或不可以)使用现有的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数据库优先方法可能吗?
发布评论