Npgsql.EntityFrameworkCore.PostgreSQL 11.0.0-preview.3

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.4 9 05/17/2026
11.0.0-preview.3 23 04/30/2026
11.0.0-preview.2 31 03/11/2026
11.0.0-preview.1 37 02/13/2026
10.0.2 7 05/27/2026
10.0.1 38 03/13/2026
10.0.0 271 11/23/2025
10.0.0-rc.2 69 10/17/2025
10.0.0-rc.1 79 09/10/2025
10.0.0-preview.7 95 08/18/2025
10.0.0-preview.5 91 06/13/2025
10.0.0-preview.3 103 04/13/2025
10.0.0-preview.2 111 03/31/2025
10.0.0-preview.1 111 03/31/2025
9.0.4 766 03/15/2025
9.0.3 261 02/11/2025
9.0.2 130 12/22/2024
9.0.1 112 11/19/2024
9.0.0 114 11/19/2024
9.0.0-rc.2 116 10/21/2024
9.0.0-rc.1 122 09/19/2024
9.0.0-preview.7 107 09/19/2024
9.0.0-preview.3 136 07/19/2024
9.0.0-preview.2 172 07/19/2024
9.0.0-preview.1 151 07/19/2024
8.0.11 112 11/19/2024
8.0.10 306 10/22/2024
8.0.8 261 10/15/2024
8.0.4 405 06/27/2024
8.0.2 130 07/19/2024
8.0.0 436 02/04/2024
8.0.0-rc.2 146 07/19/2024
8.0.0-rc.1 155 07/19/2024
8.0.0-preview.7 152 07/19/2024
8.0.0-preview.4 149 07/19/2024
8.0.0-preview.3 149 07/19/2024
8.0.0-preview.2 109 07/19/2024
8.0.0-preview.1 152 07/19/2024
7.0.18 131 07/19/2024
7.0.11 136 07/19/2024
7.0.4 143 07/19/2024
7.0.3 201 02/04/2024
7.0.1 148 07/19/2024
7.0.0 141 02/04/2024
7.0.0-rc.2 166 07/19/2024
7.0.0-rc.1 134 07/19/2024
7.0.0-preview.7 123 07/19/2024
7.0.0-preview.6 120 07/19/2024
7.0.0-preview.5 136 07/19/2024
7.0.0-preview.4 118 07/19/2024
7.0.0-preview.3 121 07/19/2024
7.0.0-preview.2 125 07/19/2024
7.0.0-preview.1 121 07/19/2024
6.0.29 127 07/19/2024
6.0.22 145 07/19/2024
6.0.8 136 07/19/2024
6.0.7 141 07/19/2024
6.0.6 158 07/19/2024
6.0.5 141 07/19/2024
6.0.4 163 02/09/2024
6.0.3 196 02/04/2024
6.0.2 152 07/19/2024
6.0.1 163 07/19/2024
6.0.0 154 07/17/2024
6.0.0-rc.2 132 07/19/2024
6.0.0-rc.1 150 07/19/2024
6.0.0-preview7 140 07/19/2024
6.0.0-preview6 149 07/19/2024
6.0.0-preview5 128 07/19/2024
6.0.0-preview4 130 07/19/2024
6.0.0-preview3 143 07/19/2024
6.0.0-preview2 124 07/19/2024
6.0.0-preview1 124 07/19/2024
5.0.10 168 07/19/2024
5.0.7 130 07/19/2024
5.0.6 128 07/19/2024
5.0.5.1 114 07/19/2024
5.0.5 127 07/19/2024
5.0.2 145 07/19/2024
5.0.1 149 07/19/2024
5.0.0 129 07/19/2024
3.1.18 124 07/19/2024
3.1.11 131 07/19/2024
3.1.4 143 07/19/2024
3.1.3 122 07/19/2024
3.1.2 150 07/22/2024
3.1.1.2 132 07/19/2024
3.1.1.1 151 07/19/2024
3.1.1 141 07/19/2024
3.1.0 158 07/17/2024
3.0.1 154 06/24/2024
3.0.0 145 06/17/2024
2.2.4 142 07/19/2024
2.2.0 141 07/19/2024
2.1.2 134 07/19/2024
2.1.1.1 132 07/19/2024
2.1.1 145 07/19/2024
2.1.0 135 07/19/2024
2.0.2 134 07/19/2024
2.0.1 131 07/19/2024
2.0.0 132 07/19/2024
1.1.1 131 07/19/2024
1.1.0 138 07/19/2024
1.0.2 144 07/19/2024
1.0.1 155 07/19/2024
1.0.0 137 07/19/2024