简体   繁体   中英

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. I have installed dotconnect for PostgreSQL and still the option to create a model/schema of the database is not available. I am using Visual Studio 2013.

Could anyone help please? I need to query database entities from my C# application. 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:

"Note that Entity Framework support is not available in Standard Edition of dotConnect for PostgreSQL."

If you have that version follow the tutorial.

Hope this helps.

[Edit]

I found a different solution with npgsql here .

I made it work with version 3.0.7 (all npgsql components!) which seems to be the latest version supporting the emf stuff.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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