Npgsql.EntityFrameworkCore.PostgreSQL 7.0.3

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
.NET 6.0
There is a newer version of this package available.
See the version list below for details.
dotnet add package Npgsql.EntityFrameworkCore.PostgreSQL --version 7.0.3
NuGet\Install-Package Npgsql.EntityFrameworkCore.PostgreSQL -Version 7.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="7.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Npgsql.EntityFrameworkCore.PostgreSQL --version 7.0.3
#r "nuget: Npgsql.EntityFrameworkCore.PostgreSQL, 7.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Npgsql.EntityFrameworkCore.PostgreSQL as a Cake Addin
#addin nuget:?package=Npgsql.EntityFrameworkCore.PostgreSQL&version=7.0.3

// Install Npgsql.EntityFrameworkCore.PostgreSQL as a Cake Tool
#tool nuget:?package=Npgsql.EntityFrameworkCore.PostgreSQL&version=7.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 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 is compatible.  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-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1.0K)

Showing the top 5 NuGet packages that depend on Npgsql.EntityFrameworkCore.PostgreSQL:

Package Downloads
EFCore.BulkExtensions

EntityFramework .Net EFCore EF Core Bulk Batch Extensions for Insert Update Delete Read (CRUD) operations on SQL Server, PostgreSQL, MySQL, SQLite

Npgsql.EntityFrameworkCore.PostgreSQL.Design

PostgreSQL/Npgsql provider for Entity Framework Core.

Npgsql.EntityFrameworkCore.PostgreSQL.NetTopologySuite The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

NetTopologySuite PostGIS spatial support plugin for PostgreSQL/Npgsql Entity Framework Core provider.

Npgsql.EntityFrameworkCore.PostgreSQL.NodaTime The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

NodaTime support plugin for PostgreSQL/Npgsql Entity Framework Core provider.

Reo.Core.Database

Package Description

GitHub repositories (191)

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
The core 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 and the ASP.NET Core platforms. Provides the fundamental infrastructure, production-ready startup templates, application modules, UI themes, tooling, guides and documentation.
MassTransit/MassTransit
Distributed Application Framework for .NET
aspnet/Mvc
[Archived] ASP.NET Core MVC is a model view controller framework for building dynamic web sites with clean separation of concerns, including the merged MVC, Web API, and Web Pages w/ Razor. Project moved to https://github.com/aspnet/AspNetCore
Version Downloads Last updated
8.0.0 77,878 11/21/2023
8.0.0-rc.2 62,859 10/11/2023
8.0.0-rc.1 24,892 9/14/2023
8.0.0-preview.7 9,333 8/18/2023
8.0.0-preview.4 44,697 5/20/2023
8.0.0-preview.3 19,478 4/24/2023
8.0.0-preview.2 22,492 3/20/2023
8.0.0-preview.1 59,641 3/3/2023
7.0.11 1,624,616 9/15/2023
7.0.4 6,785,287 4/24/2023
7.0.3 4,917,900 2/15/2023
7.0.1 3,778,037 12/17/2022
7.0.0 2,039,892 11/9/2022
7.0.0-rc.2 47,578 10/11/2022
7.0.0-rc.1 16,001 9/16/2022
7.0.0-preview.7 15,078 8/9/2022
7.0.0-preview.6 13,218 7/13/2022
7.0.0-preview.5 9,179 6/19/2022
7.0.0-preview.4 15,059 5/11/2022
7.0.0-preview.3 11,721 4/19/2022
7.0.0-preview.2 23,534 3/16/2022
7.0.0-preview.1 7,926 2/17/2022
6.0.22 266,090 9/15/2023
6.0.8 4,960,703 12/17/2022
6.0.7 6,770,241 9/16/2022
6.0.6 6,391,639 8/4/2022
6.0.5 4,687,365 6/19/2022
6.0.4 6,476,945 4/19/2022
6.0.3 6,235,096 1/27/2022
6.0.2 3,236,065 12/22/2021
6.0.1 3,965,657 12/3/2021
6.0.0 2,796,099 11/9/2021
6.0.0-rc.2 129,064 10/14/2021
6.0.0-rc.1 60,140 9/24/2021
6.0.0-preview7 18,993 8/16/2021
6.0.0-preview6 5,381 7/31/2021
6.0.0-preview5 36,718 7/1/2021
6.0.0-preview4 31,142 5/27/2021
6.0.0-preview3 22,196 4/15/2021
6.0.0-preview2 8,649 3/11/2021
6.0.0-preview1 11,617 2/16/2021
5.0.10 6,897,473 9/15/2021
5.0.7 4,955,069 6/13/2021
5.0.6 1,627,380 5/11/2021
5.0.5.1 1,146,522 4/21/2021
5.0.5 362,746 4/16/2021
5.0.2 4,329,281 1/19/2021
5.0.1 1,344,607 12/12/2020
5.0.0 1,645,833 11/15/2020
3.1.18 1,949,022 8/27/2021
3.1.11 2,494,461 1/21/2021
3.1.4 11,455,933 5/29/2020
3.1.3 3,077,224 3/26/2020
3.1.2 1,845,603 2/20/2020
3.1.1.2 742,396 2/6/2020
3.1.1.1 178,791 2/3/2020
3.1.1 322,243 1/31/2020
3.1.0 2,712,127 12/4/2019
3.0.1 996,768 10/2/2019
3.0.0 253,199 9/26/2019
2.2.4 5,106,128 5/21/2019
2.2.0 5,214,705 12/7/2018
2.1.2 3,505,412 9/8/2018
2.1.1.1 1,062,039 7/15/2018
2.1.1 668,711 7/1/2018
2.1.0 1,230,875 5/31/2018
2.0.2 530,207 4/22/2018
2.0.1 549,796 1/11/2018
2.0.0 846,721 8/16/2017
1.1.1 226,885 7/25/2017
1.1.0 879,775 11/20/2016
1.0.2 54,175 9/24/2016
1.0.1 124,760 7/21/2016
1.0.0 124,570 6/29/2016