Npgsql.EntityFrameworkCore.PostgreSQL
8.0.10
Prefix Reserved
See the version list below for details.
dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL --version 8.0.10
NuGet\Install-Package Npgsql.EntityFrameworkCore.PostgreSQL -Version 8.0.10
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.10" />
paket add Npgsql.EntityFrameworkCore.PostgreSQL --version 8.0.10
#r "nuget: Npgsql.EntityFrameworkCore.PostgreSQL, 8.0.10"
// Install Npgsql.EntityFrameworkCore.PostgreSQL as a Cake Addin #addin nuget:?package=Npgsql.EntityFrameworkCore.PostgreSQL&version=8.0.10 // Install Npgsql.EntityFrameworkCore.PostgreSQL as a Cake Tool #tool nuget:?package=Npgsql.EntityFrameworkCore.PostgreSQL&version=8.0.10
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.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Microsoft.EntityFrameworkCore (>= 8.0.10)
- Microsoft.EntityFrameworkCore.Abstractions (>= 8.0.10)
- Microsoft.EntityFrameworkCore.Relational (>= 8.0.10)
- Npgsql (>= 8.0.5)
NuGet packages (1.2K)
Showing the top 5 NuGet packages that depend on Npgsql.EntityFrameworkCore.PostgreSQL:
Package | Downloads |
---|---|
Npgsql.EntityFrameworkCore.PostgreSQL.Design
PostgreSQL/Npgsql provider for Entity Framework Core. |
|
Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite
NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider. |
|
Npgsql.EntityFrameworkCore.PostgreSQL.NodaTime
NodaTime support plugin for PostgreSQL/Npgsql Entity Framework Core provider. |
|
Npgsql.Bulk
Extension for Entity Framework Npgsql for Bulk Copy |
|
Reo.Core.Database
Package Description |
GitHub repositories (234)
Showing the top 5 popular GitHub repositories that depend on Npgsql.EntityFrameworkCore.PostgreSQL:
Repository | Stars |
---|---|
dotnet/aspnetcore
ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
|
|
bitwarden/server
Bitwarden infrastructure/backend (API, database, Docker, etc).
|
|
abpframework/abp
Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
|
|
MassTransit/MassTransit
Distributed Application Framework for .NET
|
|
elsa-workflows/elsa-core
A .NET workflows library
|
Version | Downloads | Last updated |
---|---|---|
9.0.1 | 15,135 | 11/19/2024 |
9.0.0-rc.2 | 44,312 | 10/13/2024 |
9.0.0-rc.1 | 31,199 | 9/13/2024 |
9.0.0-preview.7 | 6,991 | 9/1/2024 |
9.0.0-preview.3 | 111,013 | 4/12/2024 |
9.0.0-preview.2 | 12,256 | 3/22/2024 |
9.0.0-preview.1 | 31,698 | 2/14/2024 |
8.0.11 | 26,157 | 11/18/2024 |
8.0.10 | 1,141,538 | 10/17/2024 |
8.0.8 | 1,128,757 | 9/27/2024 |
8.0.4 | 12,438,408 | 5/11/2024 |
8.0.2 | 7,898,389 | 2/17/2024 |
8.0.0 | 7,214,742 | 11/21/2023 |
8.0.0-rc.2 | 161,414 | 10/11/2023 |
8.0.0-rc.1 | 54,663 | 9/14/2023 |
8.0.0-preview.7 | 15,900 | 8/18/2023 |
8.0.0-preview.4 | 67,730 | 5/20/2023 |
8.0.0-preview.3 | 36,149 | 4/24/2023 |
8.0.0-preview.2 | 28,434 | 3/20/2023 |
8.0.0-preview.1 | 62,649 | 3/3/2023 |
7.0.18 | 823,931 | 5/11/2024 |
7.0.11 | 7,767,398 | 9/15/2023 |
7.0.4 | 11,799,324 | 4/24/2023 |
7.0.3 | 7,339,566 | 2/15/2023 |
7.0.1 | 5,131,411 | 12/17/2022 |
7.0.0 | 3,073,785 | 11/9/2022 |
7.0.0-rc.2 | 56,457 | 10/11/2022 |
7.0.0-rc.1 | 16,680 | 9/16/2022 |
7.0.0-preview.7 | 16,106 | 8/9/2022 |
7.0.0-preview.6 | 14,466 | 7/13/2022 |
7.0.0-preview.5 | 10,438 | 6/19/2022 |
7.0.0-preview.4 | 17,414 | 5/11/2022 |
7.0.0-preview.3 | 13,186 | 4/19/2022 |
7.0.0-preview.2 | 24,139 | 3/16/2022 |
7.0.0-preview.1 | 10,099 | 2/17/2022 |
6.0.29 | 796,023 | 5/11/2024 |
6.0.22 | 1,885,675 | 9/15/2023 |
6.0.8 | 9,374,419 | 12/17/2022 |
6.0.7 | 9,326,724 | 9/16/2022 |
6.0.6 | 8,367,374 | 8/4/2022 |
6.0.5 | 5,885,156 | 6/19/2022 |
6.0.4 | 8,249,048 | 4/19/2022 |
6.0.3 | 7,521,897 | 1/27/2022 |
6.0.2 | 3,855,659 | 12/22/2021 |
6.0.1 | 5,112,809 | 12/3/2021 |
6.0.0 | 4,041,728 | 11/9/2021 |
6.0.0-rc.2 | 132,529 | 10/14/2021 |
6.0.0-rc.1 | 124,127 | 9/24/2021 |
6.0.0-preview7 | 19,888 | 8/16/2021 |
6.0.0-preview6 | 5,910 | 7/31/2021 |
6.0.0-preview5 | 44,082 | 7/1/2021 |
6.0.0-preview4 | 32,041 | 5/27/2021 |
6.0.0-preview3 | 22,808 | 4/15/2021 |
6.0.0-preview2 | 9,197 | 3/11/2021 |
6.0.0-preview1 | 12,654 | 2/16/2021 |
5.0.10 | 7,823,680 | 9/15/2021 |
5.0.7 | 5,356,924 | 6/13/2021 |
5.0.6 | 1,771,268 | 5/11/2021 |
5.0.5.1 | 1,250,939 | 4/21/2021 |
5.0.5 | 406,296 | 4/16/2021 |
5.0.2 | 4,499,087 | 1/19/2021 |
5.0.1 | 1,441,909 | 12/12/2020 |
5.0.0 | 1,808,464 | 11/15/2020 |
3.1.18 | 2,540,012 | 8/27/2021 |
3.1.11 | 2,747,958 | 1/21/2021 |
3.1.4 | 12,084,111 | 5/29/2020 |
3.1.3 | 3,281,960 | 3/26/2020 |
3.1.2 | 1,958,339 | 2/20/2020 |
3.1.1.2 | 762,289 | 2/6/2020 |
3.1.1.1 | 186,669 | 2/3/2020 |
3.1.1 | 350,477 | 1/31/2020 |
3.1.0 | 2,920,425 | 12/4/2019 |
3.0.1 | 1,032,693 | 10/2/2019 |
3.0.0 | 266,670 | 9/26/2019 |
2.2.4 | 5,349,471 | 5/21/2019 |
2.2.0 | 5,445,789 | 12/7/2018 |
2.1.2 | 3,588,054 | 9/8/2018 |
2.1.1.1 | 1,177,571 | 7/15/2018 |
2.1.1 | 685,894 | 7/1/2018 |
2.1.0 | 1,285,388 | 5/31/2018 |
2.0.2 | 541,027 | 4/22/2018 |
2.0.1 | 567,327 | 1/11/2018 |
2.0.0 | 982,715 | 8/16/2017 |
1.1.1 | 260,505 | 7/25/2017 |
1.1.0 | 1,043,886 | 11/20/2016 |
1.0.2 | 70,559 | 9/24/2016 |
1.0.1 | 126,826 | 7/21/2016 |
1.0.0 | 185,382 | 6/29/2016 |