Npgsql.EntityFrameworkCore.PostgreSQL 11.0.0-rc.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.

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

Packages Downloads
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL
A PostgreSQL® provider for Entity Framework Core that integrates with Aspire, including connection pooling, health checks, logging, and telemetry.
14
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL
A PostgreSQL® provider for Entity Framework Core that integrates with Aspire, including connection pooling, health checks, logging, and telemetry.
15
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL
A PostgreSQL® provider for Entity Framework Core that integrates with Aspire, including connection pooling, health checks, logging, and telemetry.
16
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL
A PostgreSQL® provider for Entity Framework Core that integrates with Aspire, including connection pooling, health checks, logging, and telemetry.
17
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL
A PostgreSQL® provider for Entity Framework Core that integrates with Aspire, including connection pooling, health checks, logging, and telemetry.
19
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL
A PostgreSQL® provider for Entity Framework Core that integrates with Aspire, including connection pooling, health checks, logging, and telemetry.
20

.NET 11.0

Version Downloads Last updated
11.0.0-rc.1.1 0 09/24/2026
11.0.0-rc.1 9 09/14/2026
11.0.0-preview.6 25 07/16/2026
11.0.0-preview.5 27 06/22/2026
11.0.0-preview.4 30 05/17/2026
11.0.0-preview.3 48 04/30/2026
11.0.0-preview.2 51 03/11/2026
11.0.0-preview.1 57 02/13/2026
10.0.3 20 07/10/2026
10.0.2 31 05/27/2026
10.0.1 71 03/13/2026
10.0.0 384 11/23/2025
10.0.0-rc.2 97 10/17/2025
10.0.0-rc.1 103 09/10/2025
10.0.0-preview.7 116 08/18/2025
10.0.0-preview.5 113 06/13/2025
10.0.0-preview.3 123 04/13/2025
10.0.0-preview.2 128 03/31/2025
10.0.0-preview.1 138 03/31/2025
9.0.4 812 03/15/2025
9.0.3 279 02/11/2025
9.0.2 154 12/22/2024
9.0.1 133 11/19/2024
9.0.0 138 11/19/2024
9.0.0-rc.2 135 10/21/2024
9.0.0-rc.1 148 09/19/2024
9.0.0-preview.7 132 09/19/2024
9.0.0-preview.3 156 07/19/2024
9.0.0-preview.2 191 07/19/2024
9.0.0-preview.1 171 07/19/2024
8.0.11 133 11/19/2024
8.0.10 337 10/22/2024
8.0.8 284 10/15/2024
8.0.4 427 06/27/2024
8.0.2 156 07/19/2024
8.0.0 455 02/04/2024
8.0.0-rc.2 163 07/19/2024
8.0.0-rc.1 177 07/19/2024
8.0.0-preview.7 172 07/19/2024
8.0.0-preview.4 168 07/19/2024
8.0.0-preview.3 167 07/19/2024
8.0.0-preview.2 130 07/19/2024
8.0.0-preview.1 171 07/19/2024
7.0.18 151 07/19/2024
7.0.11 158 07/19/2024
7.0.4 167 07/19/2024
7.0.3 221 02/04/2024
7.0.1 168 07/19/2024
7.0.0 160 02/04/2024
7.0.0-rc.2 186 07/19/2024
7.0.0-rc.1 149 07/19/2024
7.0.0-preview.7 143 07/19/2024
7.0.0-preview.6 140 07/19/2024
7.0.0-preview.5 155 07/19/2024
7.0.0-preview.4 139 07/19/2024
7.0.0-preview.3 139 07/19/2024
7.0.0-preview.2 147 07/19/2024
7.0.0-preview.1 142 07/19/2024
6.0.29 152 07/19/2024
6.0.22 165 07/19/2024
6.0.8 156 07/19/2024
6.0.7 163 07/19/2024
6.0.6 182 07/19/2024
6.0.5 161 07/19/2024
6.0.4 187 02/09/2024
6.0.3 221 02/04/2024
6.0.2 172 07/19/2024
6.0.1 184 07/19/2024
6.0.0 177 07/17/2024
6.0.0-rc.2 153 07/19/2024
6.0.0-rc.1 170 07/19/2024
6.0.0-preview7 166 07/19/2024
6.0.0-preview6 169 07/19/2024
6.0.0-preview5 151 07/19/2024
6.0.0-preview4 152 07/19/2024
6.0.0-preview3 161 07/19/2024
6.0.0-preview2 138 07/19/2024
6.0.0-preview1 147 07/19/2024
5.0.10 188 07/19/2024
5.0.7 149 07/19/2024
5.0.6 157 07/19/2024
5.0.5.1 134 07/19/2024
5.0.5 149 07/19/2024
5.0.2 164 07/19/2024
5.0.1 168 07/19/2024
5.0.0 152 07/19/2024
3.1.18 149 07/19/2024
3.1.11 154 07/19/2024
3.1.4 167 07/19/2024
3.1.3 144 07/19/2024
3.1.2 176 07/22/2024
3.1.1.2 154 07/19/2024
3.1.1.1 175 07/19/2024
3.1.1 158 07/19/2024
3.1.0 180 07/17/2024
3.0.1 174 06/24/2024
3.0.0 169 06/17/2024
2.2.4 167 07/19/2024
2.2.0 163 07/19/2024
2.1.2 155 07/19/2024
2.1.1.1 144 07/19/2024
2.1.1 166 07/19/2024
2.1.0 159 07/19/2024
2.0.2 156 07/19/2024
2.0.1 151 07/19/2024
2.0.0 154 07/19/2024
1.1.1 151 07/19/2024
1.1.0 161 07/19/2024
1.0.2 164 07/19/2024
1.0.1 178 07/19/2024
1.0.0 157 07/19/2024