Npgsql.EntityFrameworkCore.PostgreSQL 9.0.2
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 |
---|---|
Dis.Common.Db
Package Description
|
13,124 |
Npgsql.EntityFrameworkCore.PostgreSQL.Design
Npgsql.EntityFrameworkCore.PostgreSQL.Design
|
40 |
Npgsql.EntityFrameworkCore.PostgreSQL.Design
Npgsql.EntityFrameworkCore.PostgreSQL.Design
|
49 |
Npgsql.EntityFrameworkCore.PostgreSQL.Design
Npgsql.EntityFrameworkCore.PostgreSQL.Design
|
50 |
Npgsql.EntityFrameworkCore.PostgreSQL.Design
Npgsql.EntityFrameworkCore.PostgreSQL.Design
|
60 |
Npgsql.EntityFrameworkCore.PostgreSQL.Design
Npgsql.EntityFrameworkCore.PostgreSQL.Design
|
3,874 |
Npgsql.EntityFrameworkCore.PostgreSQL.Design
PostgreSQL/Npgsql provider for Entity Framework Core.
|
59 |
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
|
38 |
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
|
39 |
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
|
40 |
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
|
41 |
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
|
44 |
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
|
45 |
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
|
50 |
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
|
60 |
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.
|
61 |
.NET 8.0
- Microsoft.EntityFrameworkCore (>= 9.0.0 && < 10.0.0)
- Microsoft.EntityFrameworkCore.Relational (>= 9.0.0 && < 10.0.0)
- Npgsql (>= 9.0.2)
Version | Downloads | Last updated |
---|---|---|
9.0.2 | 3 | 12/10/2024 |
9.0.1 | 2 | 11/24/2024 |
9.0.0 | 3 | 11/18/2024 |
9.0.0-rc.2 | 6 | 10/14/2024 |
9.0.0-rc.1 | 11 | 09/18/2024 |
9.0.0-preview.7 | 10 | 09/05/2024 |
9.0.0-preview.3 | 11 | 04/23/2024 |
9.0.0-preview.2 | 11 | 04/23/2024 |
9.0.0-preview.1 | 14 | 03/02/2024 |
8.0.11 | 2 | 11/18/2024 |
8.0.10 | 6 | 10/18/2024 |
8.0.8 | 7 | 09/29/2024 |
8.0.4 | 8 | 05/20/2024 |
8.0.2 | 12 | 03/01/2024 |
8.0.0 | 17 | 11/29/2023 |
8.0.0-rc.2 | 12 | 10/19/2023 |
8.0.0-rc.1 | 16 | 09/18/2023 |
8.0.0-preview.7 | 15 | 09/03/2023 |
8.0.0-preview.4 | 18 | 06/05/2023 |
8.0.0-preview.3 | 21 | 06/05/2023 |
8.0.0-preview.2 | 51 | 05/17/2023 |
8.0.0-preview.1 | 29 | 06/05/2023 |
7.0.18 | 8 | 05/21/2024 |
7.0.11 | 12 | 09/22/2023 |
7.0.4 | 24 | 06/06/2023 |
7.0.3 | 20 | 05/07/2023 |
7.0.1 | 17 | 05/14/2023 |
7.0.0 | 1,631 | 11/15/2022 |
7.0.0-rc.2 | 15 | 10/15/2022 |
7.0.0-rc.1 | 47 | 09/22/2022 |
7.0.0-preview.7 | 30 | 08/12/2022 |
7.0.0-preview.6 | 88 | 08/13/2022 |
7.0.0-preview.5 | 36 | 08/13/2022 |
7.0.0-preview.4 | 31 | 06/27/2022 |
7.0.0-preview.3 | 35 | 08/13/2022 |
7.0.0-preview.2 | 36 | 08/13/2022 |
7.0.0-preview.1 | 29 | 08/13/2022 |
6.0.29 | 10 | 05/21/2024 |
6.0.22 | 16 | 09/27/2023 |
6.0.8 | 6,069 | 02/07/2023 |
6.0.7 | 14,926 | 09/24/2022 |
6.0.6 | 44 | 08/13/2022 |
6.0.5 | 40 | 08/13/2022 |
6.0.4 | 40 | 08/13/2022 |
6.0.3 | 879 | 06/27/2022 |
6.0.2 | 37 | 08/13/2022 |
6.0.1 | 42 | 08/13/2022 |
6.0.0 | 41 | 08/20/2022 |
6.0.0-rc.2 | 42 | 08/13/2022 |
6.0.0-rc.1 | 62 | 08/13/2022 |
6.0.0-preview7 | 20 | 08/13/2022 |
6.0.0-preview6 | 37 | 06/30/2022 |
6.0.0-preview5 | 30 | 08/19/2022 |
6.0.0-preview4 | 31 | 07/24/2022 |
6.0.0-preview3 | 27 | 08/13/2022 |
6.0.0-preview2 | 26 | 08/13/2022 |
6.0.0-preview1 | 55 | 08/13/2022 |
5.0.10 | 10,717 | 06/27/2022 |
5.0.7 | 31 | 06/27/2022 |
5.0.6 | 36 | 08/13/2022 |
5.0.5.1 | 39 | 08/13/2022 |
5.0.5 | 28 | 07/29/2022 |
5.0.2 | 33 | 09/11/2022 |
5.0.1 | 62 | 08/13/2022 |
5.0.0 | 24 | 08/13/2022 |
3.1.18 | 36 | 08/13/2022 |
3.1.11 | 34 | 08/13/2022 |
3.1.4 | 51 | 08/13/2022 |
3.1.3 | 28 | 08/13/2022 |
3.1.2 | 49 | 09/12/2022 |
3.1.1.2 | 22 | 08/19/2022 |
3.1.1.1 | 31 | 08/13/2022 |
3.1.1 | 46 | 08/13/2022 |
3.1.0 | 53 | 08/13/2022 |
3.0.1 | 34 | 08/13/2022 |
3.0.0 | 29 | 08/13/2022 |
2.2.4 | 30 | 08/13/2022 |
2.2.0 | 32 | 07/18/2022 |
2.1.2 | 27 | 08/13/2022 |
2.1.1.1 | 27 | 08/13/2022 |
2.1.1 | 29 | 08/13/2022 |
2.1.0 | 38 | 08/13/2022 |
2.0.2 | 35 | 08/19/2022 |
2.0.1 | 44 | 09/24/2022 |
2.0.0 | 55 | 08/13/2022 |
1.1.1 | 31 | 08/18/2022 |
1.1.0 | 3,886 | 06/27/2022 |
1.0.2 | 37 | 08/13/2022 |
1.0.1 | 62 | 08/18/2022 |
1.0.0 | 44 | 07/10/2022 |