Npgsql.EntityFrameworkCore.PostgreSQL 11.0.0-preview.6

Npgsql Entity Framework Core provider for PostgreSQL

Npgsql.EntityFrameworkCore.PostgreSQL is the open source EF Core provider for PostgreSQL. It allows you to interact with PostgreSQL via the most widely-used .NET O/RM from Microsoft, and use familiar LINQ syntax to express queries. It's built on top of Npgsql.

The provider looks and feels just like any other Entity Framework Core provider. Here's a quick sample to get you started:

await using var ctx = new BlogContext();
await ctx.Database.EnsureDeletedAsync();
await ctx.Database.EnsureCreatedAsync();

// Insert a Blog
ctx.Blogs.Add(new() { Name = "FooBlog" });
await ctx.SaveChangesAsync();

// Query all blogs who's name starts with F
var fBlogs = await ctx.Blogs.Where(b => b.Name.StartsWith("F")).ToListAsync();

public class BlogContext : DbContext
{
    public DbSet<Blog> Blogs { get; set; }

    protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        => optionsBuilder.UseNpgsql(@"Host=myserver;Username=mylogin;Password=mypass;Database=mydatabase");
}

public class Blog
{
    public int Id { get; set; }
    public string Name { get; set; }
}

Aside from providing general EF Core support for PostgreSQL, the provider also exposes some PostgreSQL-specific capabilities, allowing you to query JSON, array or range columns, as well as many other advanced features. For more information, see the the Npgsql site. For information about EF Core in general, see the EF Core website.

Showing the top 20 packages that depend on Npgsql.EntityFrameworkCore.PostgreSQL.

Packages Downloads
Skoruba.IdentityServer4.Admin.EntityFramework.Configuration
Entity Framework configuration for the administration of the IdentityServer4 and Asp.Net Core Identity
16
Skoruba.IdentityServer4.Admin.EntityFramework.PostgreSQL
Entity Framework layer for the administration of the IdentityServer4 and Asp.Net Core Identity with PostrgreSQL support
15
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL
A PostgreSQL® provider for Entity Framework Core that integrates with Aspire, including connection pooling, health checks, logging, and telemetry.
15
Skoruba.IdentityServer4.Admin.EntityFramework.Configuration
Entity Framework configuration for the administration of the IdentityServer4 and Asp.Net Core Identity
14
Skoruba.IdentityServer4.Admin.EntityFramework.Configuration
Entity Framework configuration for the administration of the IdentityServer4 and Asp.Net Core Identity
13
Skoruba.IdentityServer4.Admin.EntityFramework.Configuration
Entity Framework configuration for the administration of the IdentityServer4 and Asp.Net Core Identity
12
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL
A PostgreSQL® provider for Entity Framework Core that integrates with Aspire, including connection pooling, health checks, logging, and telemetry.
12
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL
A PostgreSQL® provider for Entity Framework Core that integrates with Aspire, including connection pooling, health checks, logging, and telemetry.
11
Skoruba.IdentityServer4.Admin.EntityFramework.Configuration
Entity Framework configuration for the administration of the IdentityServer4 and Asp.Net Core Identity
10
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL
A PostgreSQL® provider for Entity Framework Core that integrates with Aspire, including connection pooling, health checks, logging, and telemetry.
9
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL
A PostgreSQL® provider for Entity Framework Core that integrates with Aspire, including connection pooling, health checks, logging, and telemetry.
8
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL
A PostgreSQL® provider for Entity Framework Core that integrates with Aspire, including connection pooling, health checks, logging, and telemetry.
7
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL
A PostgreSQL® provider for Entity Framework Core that integrates with Aspire, including connection pooling, health checks, logging, and telemetry.
6

.NET 11.0

Version Downloads Last updated
11.0.0-preview.6 1 8/27/2026
11.0.0-preview.5 0 6/22/2026
11.0.0-preview.4 0 5/17/2026
11.0.0-preview.3 0 4/28/2026
11.0.0-preview.2 7 3/13/2026
11.0.0-preview.1 7 2/14/2026
10.0.3 0 7/10/2026
10.0.2 0 5/27/2026
10.0.1 6 3/14/2026
10.0.0 11 11/24/2025
10.0.0-rc.2 8 10/18/2025
10.0.0-rc.1 12 9/12/2025
10.0.0-preview.7 11 8/19/2025
10.0.0-preview.5 2 6/14/2025
10.0.0-preview.3 4 6/9/2025
10.0.0-preview.2 2 6/9/2025
10.0.0-preview.1 2 6/15/2025
9.0.4 3 6/10/2025
9.0.3 3 6/10/2025
9.0.2 3 6/15/2025
9.0.1 5 6/10/2025
9.0.0-rc.2 4 6/10/2025
9.0.0-rc.1 5 6/8/2025
9.0.0-preview.7 4 6/9/2025
9.0.0-preview.3 4 6/9/2025
9.0.0-preview.2 6 6/9/2025
9.0.0-preview.1 4 6/15/2025
8.0.11 4 6/9/2025
8.0.10 4 6/10/2025
8.0.8 5 6/10/2025
8.0.4 5 6/10/2025
8.0.2 5 6/10/2025
8.0.0 4 6/10/2025
8.0.0-rc.2 5 6/10/2025
8.0.0-rc.1 4 6/15/2025
8.0.0-preview.7 4 6/9/2025
8.0.0-preview.4 4 6/9/2025
8.0.0-preview.3 5 6/9/2025
8.0.0-preview.2 3 6/9/2025
8.0.0-preview.1 3 6/10/2025
7.0.18 5 6/10/2025
7.0.11 3 6/15/2025
7.0.4 5 6/15/2025
7.0.3 5 6/10/2025
7.0.1 6 6/9/2025
7.0.0 4 6/15/2025
7.0.0-rc.2 4 6/10/2025
7.0.0-rc.1 8 6/10/2025
7.0.0-preview.7 3 6/9/2025
7.0.0-preview.6 3 6/9/2025
7.0.0-preview.5 6 6/9/2025
7.0.0-preview.4 4 6/9/2025
7.0.0-preview.3 4 6/9/2025
7.0.0-preview.2 5 6/9/2025
7.0.0-preview.1 5 6/10/2025
6.0.29 3 6/9/2025
6.0.22 3 6/10/2025
6.0.8 4 6/10/2025
6.0.7 6 6/10/2025
6.0.6 3 6/15/2025
6.0.5 6 6/15/2025
6.0.4 3 6/10/2025
6.0.3 7 6/10/2025
6.0.2 3 6/15/2025
6.0.1 3 6/15/2025
6.0.0 5 6/10/2025
6.0.0-rc.2 14 6/9/2025
6.0.0-rc.1 13 6/9/2025
6.0.0-preview7 15 6/9/2025
6.0.0-preview6 19 6/9/2025
6.0.0-preview5 14 6/9/2025
6.0.0-preview4 12 6/9/2025
6.0.0-preview3 14 6/9/2025
6.0.0-preview2 16 6/8/2025
6.0.0-preview1 12 6/8/2025
5.0.10 13 6/8/2025
5.0.7 16 6/9/2025
5.0.6 14 6/9/2025
5.0.5.1 18 6/8/2025
5.0.5 15 6/8/2025
5.0.2 17 6/8/2025
5.0.1 16 6/9/2025
5.0.0 17 6/9/2025
3.1.18 14 6/8/2025
3.1.11 11 6/8/2025
3.1.4 16 6/8/2025
3.1.3 15 6/9/2025
3.1.2 16 6/9/2025
3.1.1.2 15 6/9/2025
3.1.1.1 17 6/9/2025
3.1.1 18 6/15/2025
3.1.0 18 6/9/2025
3.0.1 14 6/9/2025
3.0.0 45 6/7/2025
2.2.4 18 6/7/2025
2.2.0 18 6/9/2025
2.1.2 18 6/9/2025
2.1.1.1 19 6/8/2025
2.1.1 17 6/9/2025
2.1.0 15 6/9/2025
2.0.2 16 6/7/2025
2.0.1 17 6/9/2025
2.0.0 15 6/8/2025
1.1.1 16 6/9/2025
1.1.0 17 6/9/2025
1.0.2 15 6/9/2025
1.0.1 17 6/9/2025
1.0.0 15 6/8/2025