Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which .NET ORM has best support for PostgreSQL database

I'm interested to find out which ORM has best support for Postgres SQL database? Does any mapper have, both, LINQ support and ability to generate model from database?

like image 202
Marko Avatar asked May 31 '10 08:05

Marko


People also ask

What is ORM in PostgreSQL?

Geshan Manandhar on Jul 20, 2021. An Object Relational Mapper (ORM) is a code library that plots the transfer of data stored in a database (usually relational) into objects represented in the code.

Does C# work with PostgreSQL?

Npgsql is an open source ADO.NET Data Provider for PostgreSQL, it allows programs written in C#, Visual Basic, F# to access the PostgreSQL database server. It is implemented in 100% C# code, is free and is open source.

Does Entity Framework work with PostgreSQL?

Using the Entity Data ProviderdotConnect for PostgreSQL allows using it in Entity Framework models in various ways. You can use our provider with standard Visual Studio Entity Framework tools, in the same way as SqlClient.


2 Answers

I haven't compared it against DbLinq but LlbgenPro supports Postgres and is very strong. It supports both Linq and generating the model from the database. In it's just released v3.0 it can generate projects not just for the LlblGen runtime but also for NHibernate, Entity Framework and LinqToSql.

It should be in your list to evaluate.

like image 172
automatic Avatar answered Sep 19 '22 12:09

automatic


Quite an old question, but for anyone happening upon this now (like me), please do check out the Marten document & event store for PostgreSQL/.net

like image 29
ultra909 Avatar answered Sep 18 '22 12:09

ultra909