Npgsql.EntityFrameworkCore.PostgreSQL
6.0.3
Prefix Reserved
See the version list below for details.
dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL --version 6.0.3
NuGet\Install-Package Npgsql.EntityFrameworkCore.PostgreSQL -Version 6.0.3
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="6.0.3" />
paket add Npgsql.EntityFrameworkCore.PostgreSQL --version 6.0.3
#r "nuget: Npgsql.EntityFrameworkCore.PostgreSQL, 6.0.3"
// Install Npgsql.EntityFrameworkCore.PostgreSQL as a Cake Addin #addin nuget:?package=Npgsql.EntityFrameworkCore.PostgreSQL&version=6.0.3 // Install Npgsql.EntityFrameworkCore.PostgreSQL as a Cake Tool #tool nuget:?package=Npgsql.EntityFrameworkCore.PostgreSQL&version=6.0.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.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
-
net6.0
- Microsoft.EntityFrameworkCore (>= 6.0.1)
- Microsoft.EntityFrameworkCore.Abstractions (>= 6.0.1)
- Microsoft.EntityFrameworkCore.Relational (>= 6.0.1)
- Npgsql (>= 6.0.3)
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 (227)
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
|
|
btcpayserver/btcpayserver
Accept Bitcoin payments. Free, open-source & self-hosted, Bitcoin payment processor.
|
Version | Downloads | Last updated |
---|---|---|
9.0.0-rc.1 | 9,081 | 9/13/2024 |
9.0.0-preview.7 | 3,558 | 9/1/2024 |
9.0.0-preview.3 | 99,017 | 4/12/2024 |
9.0.0-preview.2 | 11,224 | 3/22/2024 |
9.0.0-preview.1 | 30,585 | 2/14/2024 |
8.0.8 | 125,705 | 9/27/2024 |
8.0.4 | 9,058,163 | 5/11/2024 |
8.0.2 | 6,812,018 | 2/17/2024 |
8.0.0 | 6,457,713 | 11/21/2023 |
8.0.0-rc.2 | 157,693 | 10/11/2023 |
8.0.0-rc.1 | 50,883 | 9/14/2023 |
8.0.0-preview.7 | 15,733 | 8/18/2023 |
8.0.0-preview.4 | 66,170 | 5/20/2023 |
8.0.0-preview.3 | 34,743 | 4/24/2023 |
8.0.0-preview.2 | 28,163 | 3/20/2023 |
8.0.0-preview.1 | 62,449 | 3/3/2023 |
7.0.18 | 618,708 | 5/11/2024 |
7.0.11 | 7,417,928 | 9/15/2023 |
7.0.4 | 11,400,665 | 4/24/2023 |
7.0.3 | 7,132,300 | 2/15/2023 |
7.0.1 | 5,028,022 | 12/17/2022 |
7.0.0 | 2,980,633 | 11/9/2022 |
7.0.0-rc.2 | 56,019 | 10/11/2022 |
7.0.0-rc.1 | 16,629 | 9/16/2022 |
7.0.0-preview.7 | 16,081 | 8/9/2022 |
7.0.0-preview.6 | 14,317 | 7/13/2022 |
7.0.0-preview.5 | 10,255 | 6/19/2022 |
7.0.0-preview.4 | 16,911 | 5/11/2022 |
7.0.0-preview.3 | 12,922 | 4/19/2022 |
7.0.0-preview.2 | 24,055 | 3/16/2022 |
7.0.0-preview.1 | 9,924 | 2/17/2022 |
6.0.29 | 572,270 | 5/11/2024 |
6.0.22 | 1,755,654 | 9/15/2023 |
6.0.8 | 8,923,428 | 12/17/2022 |
6.0.7 | 9,088,369 | 9/16/2022 |
6.0.6 | 8,196,332 | 8/4/2022 |
6.0.5 | 5,736,492 | 6/19/2022 |
6.0.4 | 8,097,765 | 4/19/2022 |
6.0.3 | 7,403,384 | 1/27/2022 |
6.0.2 | 3,799,339 | 12/22/2021 |
6.0.1 | 4,999,129 | 12/3/2021 |
6.0.0 | 3,916,382 | 11/9/2021 |
6.0.0-rc.2 | 132,286 | 10/14/2021 |
6.0.0-rc.1 | 116,130 | 9/24/2021 |
6.0.0-preview7 | 19,865 | 8/16/2021 |
6.0.0-preview6 | 5,878 | 7/31/2021 |
6.0.0-preview5 | 43,991 | 7/1/2021 |
6.0.0-preview4 | 31,982 | 5/27/2021 |
6.0.0-preview3 | 22,781 | 4/15/2021 |
6.0.0-preview2 | 9,168 | 3/11/2021 |
6.0.0-preview1 | 12,576 | 2/16/2021 |
5.0.10 | 7,717,114 | 9/15/2021 |
5.0.7 | 5,316,711 | 6/13/2021 |
5.0.6 | 1,754,840 | 5/11/2021 |
5.0.5.1 | 1,239,094 | 4/21/2021 |
5.0.5 | 403,412 | 4/16/2021 |
5.0.2 | 4,480,646 | 1/19/2021 |
5.0.1 | 1,430,277 | 12/12/2020 |
5.0.0 | 1,790,089 | 11/15/2020 |
3.1.18 | 2,451,367 | 8/27/2021 |
3.1.11 | 2,719,749 | 1/21/2021 |
3.1.4 | 12,027,229 | 5/29/2020 |
3.1.3 | 3,259,549 | 3/26/2020 |
3.1.2 | 1,947,839 | 2/20/2020 |
3.1.1.2 | 759,952 | 2/6/2020 |
3.1.1.1 | 185,627 | 2/3/2020 |
3.1.1 | 346,091 | 1/31/2020 |
3.1.0 | 2,894,186 | 12/4/2019 |
3.0.1 | 1,028,965 | 10/2/2019 |
3.0.0 | 265,393 | 9/26/2019 |
2.2.4 | 5,325,806 | 5/21/2019 |
2.2.0 | 5,422,355 | 12/7/2018 |
2.1.2 | 3,580,273 | 9/8/2018 |
2.1.1.1 | 1,161,449 | 7/15/2018 |
2.1.1 | 683,670 | 7/1/2018 |
2.1.0 | 1,279,592 | 5/31/2018 |
2.0.2 | 539,748 | 4/22/2018 |
2.0.1 | 565,957 | 1/11/2018 |
2.0.0 | 972,389 | 8/16/2017 |
1.1.1 | 254,961 | 7/25/2017 |
1.1.0 | 1,013,783 | 11/20/2016 |
1.0.2 | 69,360 | 9/24/2016 |
1.0.1 | 126,787 | 7/21/2016 |
1.0.0 | 171,739 | 6/29/2016 |