Npgsql.EntityFrameworkCore.PostgreSQL 11.0.0-preview.1

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.

No packages depend on Npgsql.EntityFrameworkCore.PostgreSQL.

.NET 11.0

Version Downloads Last updated
11.0.0-preview.1 1 02/13/2026
10.0.0 86 11/23/2025
10.0.0-rc.2 47 10/17/2025
10.0.0-rc.1 54 09/10/2025
10.0.0-preview.7 67 08/18/2025
10.0.0-preview.5 63 06/13/2025
10.0.0-preview.3 76 04/13/2025
10.0.0-preview.2 83 03/31/2025
10.0.0-preview.1 88 03/31/2025
9.0.4 665 03/15/2025
9.0.3 232 02/11/2025
9.0.2 104 12/22/2024
9.0.1 83 11/19/2024
9.0.0 87 11/19/2024
9.0.0-rc.2 97 10/21/2024
9.0.0-rc.1 99 09/19/2024
9.0.0-preview.7 83 09/19/2024
9.0.0-preview.3 99 07/19/2024
9.0.0-preview.2 119 07/19/2024
9.0.0-preview.1 130 07/19/2024
8.0.11 90 11/19/2024
8.0.10 251 10/22/2024
8.0.8 227 10/15/2024
8.0.4 378 06/27/2024
8.0.2 90 07/19/2024
8.0.0 395 02/04/2024
8.0.0-rc.2 110 07/19/2024
8.0.0-rc.1 127 07/19/2024
8.0.0-preview.7 111 07/19/2024
8.0.0-preview.4 121 07/19/2024
8.0.0-preview.3 119 07/19/2024
8.0.0-preview.2 84 07/19/2024
8.0.0-preview.1 124 07/19/2024
7.0.18 107 07/19/2024
7.0.11 110 07/19/2024
7.0.4 117 07/19/2024
7.0.3 181 02/04/2024
7.0.1 116 07/19/2024
7.0.0 118 02/04/2024
7.0.0-rc.2 128 07/19/2024
7.0.0-rc.1 108 07/19/2024
7.0.0-preview.7 106 07/19/2024
7.0.0-preview.6 98 07/19/2024
7.0.0-preview.5 110 07/19/2024
7.0.0-preview.4 96 07/19/2024
7.0.0-preview.3 100 07/19/2024
7.0.0-preview.2 105 07/19/2024
7.0.0-preview.1 103 07/19/2024
6.0.29 103 07/19/2024
6.0.22 124 07/19/2024
6.0.8 106 07/19/2024
6.0.7 112 07/19/2024
6.0.6 113 07/19/2024
6.0.5 116 07/19/2024
6.0.4 134 02/09/2024
6.0.3 171 02/04/2024
6.0.2 123 07/19/2024
6.0.1 128 07/19/2024
6.0.0 111 07/17/2024
6.0.0-rc.2 105 07/19/2024
6.0.0-rc.1 122 07/19/2024
6.0.0-preview7 117 07/19/2024
6.0.0-preview6 116 07/19/2024
6.0.0-preview5 103 07/19/2024
6.0.0-preview4 100 07/19/2024
6.0.0-preview3 116 07/19/2024
6.0.0-preview2 102 07/19/2024
6.0.0-preview1 99 07/19/2024
5.0.10 126 07/19/2024
5.0.7 105 07/19/2024
5.0.6 105 07/19/2024
5.0.5.1 95 07/19/2024
5.0.5 103 07/19/2024
5.0.2 117 07/19/2024
5.0.1 121 07/19/2024
5.0.0 110 07/19/2024
3.1.18 103 07/19/2024
3.1.11 105 07/19/2024
3.1.4 125 07/19/2024
3.1.3 99 07/19/2024
3.1.2 117 07/22/2024
3.1.1.2 111 07/19/2024
3.1.1.1 119 07/19/2024
3.1.1 114 07/19/2024
3.1.0 113 07/17/2024
3.0.1 122 06/24/2024
3.0.0 119 06/17/2024
2.2.4 115 07/19/2024
2.2.0 111 07/19/2024
2.1.2 111 07/19/2024
2.1.1.1 100 07/19/2024
2.1.1 110 07/19/2024
2.1.0 111 07/19/2024
2.0.2 111 07/19/2024
2.0.1 103 07/19/2024
2.0.0 110 07/19/2024
1.1.1 103 07/19/2024
1.1.0 114 07/19/2024
1.0.2 123 07/19/2024
1.0.1 115 07/19/2024
1.0.0 110 07/19/2024