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

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

Packages Downloads
EFCore.BulkExtensions
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, SQLite
32
EFCore.BulkExtensions
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, SQLite
30
EFCore.BulkExtensions
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
23
EFCore.BulkExtensions
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, SQLite
23
EFCore.BulkExtensions
EntityFramework .Net EFCore EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
21
EFCore.BulkExtensions
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, SQLite
21
EFCore.BulkExtensions
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, SQLite
20
EFCore.BulkExtensions
EntityFramework .Net EFCore EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
20
EFCore.BulkExtensions
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
19
EFCore.BulkExtensions
EntityFramework .Net EFCore EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
19
EFCore.BulkExtensions
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, SQLite
18
EFCore.BulkExtensions
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, SQLite
17
EFCore.BulkExtensions
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
17
EFCore.BulkExtensions
EntityFramework .Net EFCore EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
17
EFCore.BulkExtensions.PostgreSql
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on PostgreSQL
17

.NET 10.0

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