Npgsql.EntityFrameworkCore.PostgreSQL 8.0.11

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 and SQLite
6
EFCore.BulkExtensions
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
7
EFCore.BulkExtensions
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, SQLite
6
EFCore.BulkExtensions
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, SQLite
7
EFCore.BulkExtensions
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, SQLite
8
EFCore.BulkExtensions
EntityFramework .Net EFCore EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
7
EFCore.BulkExtensions
EntityFramework .Net EFCore EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
9
EFCore.BulkExtensions
EntityFramework .Net EFCore EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite
11
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
7
EFCore.BulkExtensions.PostgreSql
EntityFramework EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on PostgreSQL
9
EFCore.BulkExtensions.PostgreSql
EntityFramework .Net EFCore EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on PostgreSQL
7
Quantum.FrameworkNetCore
Used for set up Micro-Service.
13

Version Downloads Last updated
9.0.2 0 12/07/2024
9.0.1 3 12/02/2024
9.0.0-rc.2 3 11/28/2024
9.0.0-rc.1 3 12/04/2024
9.0.0-preview.7 3 11/28/2024
9.0.0-preview.3 14 04/20/2024
9.0.0-preview.2 5 05/29/2024
9.0.0-preview.1 5 05/29/2024
8.0.11 5 11/28/2024
8.0.10 3 12/02/2024
8.0.8 4 12/03/2024
8.0.4 7 05/29/2024
8.0.2 7 04/27/2024
8.0.0 11 05/29/2024
8.0.0-rc.2 15 04/10/2024
8.0.0-rc.1 6 04/27/2024
8.0.0-preview.7 8 04/27/2024
8.0.0-preview.4 10 04/27/2024
8.0.0-preview.3 9 05/10/2024
8.0.0-preview.2 5 05/02/2024
8.0.0-preview.1 7 05/15/2024
7.0.18 6 05/29/2024
7.0.11 7 04/27/2024
7.0.4 5 05/28/2024
7.0.3 5 05/23/2024
7.0.1 9 02/10/2023
7.0.0 7 05/10/2024
7.0.0-rc.2 7 05/15/2024
7.0.0-rc.1 8 04/27/2024
7.0.0-preview.7 8 05/18/2024
7.0.0-preview.6 6 05/19/2024
7.0.0-preview.5 8 05/24/2024
7.0.0-preview.4 7 05/11/2024
7.0.0-preview.2 8 05/15/2024
7.0.0-preview.1 6 06/19/2023
6.0.29 7 05/29/2024
6.0.22 7 04/27/2024
6.0.6 10 01/29/2023
6.0.5 7 05/15/2024
6.0.3 7 02/07/2023
6.0.2 5 05/19/2024
6.0.1 6 04/27/2024
6.0.0 9 01/29/2023
6.0.0-rc.1 5 05/22/2024
6.0.0-preview7 8 05/08/2024
6.0.0-preview6 7 06/19/2023
6.0.0-preview5 10 05/13/2024
6.0.0-preview4 9 04/27/2024
6.0.0-preview3 6 05/23/2024
6.0.0-preview2 6 05/05/2024
5.0.10 6 05/11/2024
5.0.5 6 05/14/2024
5.0.0 8 05/03/2024
3.1.18 7 05/25/2024
3.1.1 5 06/19/2023
3.0.0 7 05/22/2024
2.1.2 6 05/19/2024
2.1.1.1 8 06/19/2023
2.0.2 5 05/14/2024
2.0.1 5 05/18/2024
2.0.0 7 05/25/2024
1.1.1 6 05/20/2024
1.1.0 6 05/02/2024
1.0.1 5 05/11/2024
1.0.0 11 01/29/2023