1

I'm following a tutorial to generate model for existing postgresql database.
I created a console application and added these NuGet packages:
EntityFramework (6.2.0), Npgsql(2.2.7), Npgsql.EntityFramework(2.2.7).

The problem is that I can't find PostgreSQL Database in the Data Source list while creating ADO.NET Entity Data model.

Does anyone know solution of the problem?

1 Answer 1

2

You might need the Visual Studio extension for PostgreSQL. Then the option for connecting to the database should show up.

Right now you installed all the NuGet packages for your code to work but Visual Studio still needs the extension to be able to create entities from existing PostgreSQL databases.

Documentation: https://www.npgsql.org/doc/ddex.html

Extension: https://marketplace.visualstudio.com/items?itemName=RojanskyS.NpgsqlPostgreSQLIntegration

Sign up to request clarification or add additional context in comments.

5 Comments

Thank you very much! Now it works and I can go to another issue!
@Luciferous, great to hear. Glad I could help
Yes, I'm just looking for button like "Answer is correct". This is my first experience of asking here.
sorry for molestation, but this option is disappeared again. I think it happened because I changed EF packages. Could it be the reason? Thank you in advance!
Possibly, try to update to the latest packages if you can and make sure you have matching versions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.