2

I want to connect to a Postgres database using EntityFramework. Is that possible?

I select:

Add>>New Item>>ADO.Net Entity Data model>>Generate from database>>New connection

But I'm stuck there. I need to generate classes for the tables in the database.

How can I do this?

Erwin Brandstetter
  • 605,456
  • 145
  • 1,078
  • 1,228
robertpas
  • 643
  • 5
  • 12
  • 25

2 Answers2

3

The following question:

Entity framework PostgreSQL

is extremely similar to yours, and covers the same ground. You will see references to npgsql there, and to Devart.

Community
  • 1
  • 1
Craig Ringer
  • 307,061
  • 76
  • 688
  • 778
2

The best solution to use PostgreSQL in combination with Entity Framework is the dotConnect provider from Devart.

You can find the PostgreSQL provider here:

http://www.devart.com/dotconnect/postgresql

Eggi
  • 1,684
  • 4
  • 20
  • 31