logoalt Hacker News

pier25yesterday at 1:05 AM2 repliesview on HN

I use PG with Entity Framework in .NET and at least 90% of my queries don't need any PG-specific features.

When I need something PG specific I have options like writing raw SQL queries.

Having most of my data layer in C# is fantastic for productivity and in most cases the performance compared to SQL is negligible.


Replies

theshrike79yesterday at 6:19 AM

Coming from Javaland to C#, Entity Framework is a breath of fresh air.

The Npgsql driver automatically applies PG-specific tricks without me having to do anything special

The only path I had to do myself is the data ingress point that had some race condition issues, everything else seems to perform pretty well out of the box.

romanhnyesterday at 1:44 AM

Entity Framework really is such a time saver. The PG adapter makes it a breeze not just with common queries, but also more recent stuff, like working with embeddings for vector search.