# npgsql/efcore.pg

Entity Framework Core provider for PostgreSQL

Repository: https://github.com/npgsql/efcore.pg
Canonical: https://ross.abutalabs.com/products/efcorepg
Language: C#
License: PostgreSQL
License Family: other
Topics: entity-framework, npgsql, postgres, postgresql, sql, database, entity-framework-core, dotnet
Last push: 2026-08-18T10:56:45+00:00

## Health v2 (maintenance only)
Score: 90/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 74, longevity 100
- inputs: {"age_days": 3797, "days_push": 15, "days_rel": 98, "gap_med": 36.0, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1836, forks 261 (observed 2026-08-28T04:05:42.718175+00:00)

## What it is
Npgsql.EntityFrameworkCore.PostgreSQL is the official Entity Framework Core provider for PostgreSQL, built on top of the Npgsql ADO.NET driver. It lets .NET developers query and persist PostgreSQL data using LINQ and exposes PostgreSQL-specific features like JSON, array, and range columns.

## Use cases
- use entity framework core with postgresql in .net
- query postgres json and array columns via linq
- map .net entities to postgresql tables
- use linq instead of raw sql for postgres queries
- add postgis spatial support to ef core
- use nodatime date types with postgresql

## When to choose
- you're building a .NET application with PostgreSQL and want an ORM
- you need LINQ-based querying with PostgreSQL-specific column types
- you want the standard, well-supported EF Core provider for Postgres

## When to avoid
- you use a database other than PostgreSQL
- you need raw SQL control or a lightweight micro-ORM like Dapper
- you're not on the .NET platform

## Facets
- artifact type: library
- maturity: stable
- function: orm, database-driver, database
- domain: databases, backend, web-development
- platform: dotnet, cross-platform
- tags: postgresql, entity-framework-core, linq, npgsql, csharp

## Member repositories
- npgsql/efcore.pg (main) score 90

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:42.718175+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:18:28.876141+00:00, confidence not recorded.
  - readme: https://github.com/npgsql/efcore.pg (fetched 2026-08-28T04:05:42.718175+00:00, sha 41a3bf04a4a3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
