74

Can someone tell me how can I get MS Entity Framework working with PostgreSQL.

Also: How does Entity Framewok work with Mono? Could you please suggest other similar ORM tools which would run on Mono and what is your opinion about them?

Craig Ringer
  • 307,061
  • 76
  • 688
  • 778
Markus
  • 3,547
  • 10
  • 39
  • 55

2 Answers2

56

Entity framework also works with Npgsql - .Net Data Provider for Postgresql. A tutorial on how to set it up can be found here: http://www.npgsql.org/ef6/index.html

Community
  • 1
  • 1
ReinierDG
  • 875
  • 7
  • 21
  • 1
    Github page https://github.com/npgsql/npgsql (the above url is currently unreachable for me) – Tim Abell Mar 02 '15 at 09:53
  • The [Npgsql Entity Framework Core provider for PostgreSQL](https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL) is now hosted in a separate GitHub repo (as is the [EF5/6 Npgsql provider](https://github.com/npgsql/EntityFramework6.Npgsql)). There is also a [EF Core Getting Started page on npgsql.org](https://www.npgsql.org/efcore/) with documentation. – Kevinoid Jan 07 '18 at 09:10
11

Devart has a product that gives entity framework support for PostgreSQL. See:

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

There is a provider for mono for postgreSQL. See:

http://www.mono-project.com/PostgreSQL

Robert Harvey
  • 178,213
  • 47
  • 333
  • 501
Shiraz Bhaiji
  • 64,065
  • 34
  • 143
  • 252