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
  • 539,169
  • 125
  • 977
  • 1,137
robertpas
  • 631
  • 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
  • 283,586
  • 65
  • 635
  • 730
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,623
  • 3
  • 20
  • 31