简体   繁体   English

Postgres数据库在ADO.NET实体数据模型中不可用

[英]Postgres Database not available in ADO.NET Entity Data Model

I am trying to create entities from a postgres database using the Visual Studio ADO.NET Entity Data Model, however Postgres Database is not listed as one of the data sources. 我正在尝试使用Visual Studio ADO.NET实体数据模型从postgres数据库创建实体,但是Postgres数据库未列为数据源之一。 I have installed dotconnect for PostgreSQL and still the option to create a model/schema of the database is not available. 我已经为PostgreSQL安装了dotconnect,但是创建数据库模型/模式的选项仍然不可用。 I am using Visual Studio 2013. 我正在使用Visual Studio 2013。

Could anyone help please? 有人可以帮忙吗? I need to query database entities from my C# application. 我需要从我的C#应用​​程序中查询数据库实体。 Thanks 谢谢

I just had the same problem. 我只是有同样的问题。

As you can read in the requirements of the dotconnect emf tutorial you have to install the Professional addition: 正如您可以阅读dotconnect emf教程的要求一样,您必须安装Professional附加组件:

"Note that Entity Framework support is not available in Standard Edition of dotConnect for PostgreSQL." “请注意,dotConnect for PostgreSQL的标准版中没有实体框架支持。”

If you have that version follow the tutorial. 如果您使用的是该版本,请按照本教程进行操作。

Hope this helps. 希望这可以帮助。

[Edit] [编辑]

I found a different solution with npgsql here . 我在这里找到了与npgsql不同的解决方案。

I made it work with version 3.0.7 (all npgsql components!) which seems to be the latest version supporting the emf stuff. 我使它与版本3.0.7(所有npgsql组件!)一起使用,这似乎是支持emf的最新版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM