Click here to Skip to main content
14,638,374 members
Rate this:
Please Sign up or sign in to vote.
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

Rate this:
Please Sign up or sign in to vote.

Solution 1

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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100