Click here to Skip to main content
14,158,462 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: bad
 
good
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" />
   
v2
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....

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web06 | 2.8.190518.1 | Last Updated 27 Feb 2018
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100