Click here to Skip to main content
15,031,055 members
Please Sign up or sign in to vote.
1.33/5 (2 votes)
See more: , +
I am stuck in the middle of a project. I am having an issue with adding the data source in "Entity Data Model Wizard"

Navigation Path:::::

Solution Explorer : Models(Folder): Add : New Item : ADO.NET Entity Data Model : EF Designer From Database : New Connection

Now here in "New Connection" I want to connect my postgresql database using Postgresql Datasource but I have only SQL Server datasource option there, Anybody know how to deal with this ERROR..??

Note: I have added Npgsql, entityframework5.Npgsql through NuGet.

What I have tried:

I have added it in Solution Explorer I have postgresql data sourcce option there then why it is not present here??
Posted
Updated 27-Feb-18 1:33am

1 solution

I'm not a user of Entity Framework, but maybe this answer will help:
c# - Postgresql and Entity Framework - Stack Overflow[^]

Could be that you need:
<provider invariantName="Npgsql" type="Npgsql.NpgsqlServices, EntityFramework5.Npgsql" />

Another option is to install this extension for Visual Studio: Npgsql PostgreSQL Integration - Visual Studio Marketplace[^]
   
v3
Comments
Sudhir Dehade 27-Feb-18 7:40am
   
I have added all dependencies through NuGet then it should automatically update my app.config file. But my question is little bit different. Why I am unable to see POstgreSQL provider name in Entity Data model Wizard..
Thank you....
Member 14768486 30-Mar-20 8:20am
   
Install this integration extension and restart VS.
https://marketplace.visualstudio.com/items?itemName=RojanskyS.NpgsqlPostgreSQLIntegration
RickZeeland 30-Mar-20 12:31pm
   
Good tip, added it to the solution :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900