Npgsql.EntityFrameworkCore.PostgreSQL 8.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
Volo.Abp.EntityFrameworkCore.PostgreSql
Package Description
59
Volo.Abp.EntityFrameworkCore.PostgreSql
Package Description
42
EFCore.BulkExtensions.MIT
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
26
EFCore.BulkExtensions.MIT
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
24
Volo.Abp.EntityFrameworkCore.PostgreSql
Package Description
23
Volo.Abp.EntityFrameworkCore.PostgreSql
Package Description
22
Volo.Abp.EntityFrameworkCore.PostgreSql
Package Description
21

.NET 8.0

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