Npgsql 2.2.0-beta1

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
This is a prerelease version of Npgsql.
There is a newer version of this package available.
See the version list below for details.
The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Npgsql --version 2.2.0-beta1
NuGet\Install-Package Npgsql -Version 2.2.0-beta1
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" Version="2.2.0-beta1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Npgsql --version 2.2.0-beta1
#r "nuget: Npgsql, 2.2.0-beta1"
#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 as a Cake Addin
#addin nuget:?package=Npgsql&version=2.2.0-beta1&prerelease

// Install Npgsql as a Cake Tool
#tool nuget:?package=Npgsql&version=2.2.0-beta1&prerelease

Npgsql is a .Net data provider for Postgresql. It allows any program developed for .Net framework to access database server. It is implemented in 100% C# code. Works with Postgresql 8.4 and above.

Product Compatible and additional computed target framework versions.
.NET Framework net20 is compatible.  net35 is compatible.  net40 is compatible.  net403 was computed.  net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (1.5K)

Showing the top 5 NuGet packages that depend on Npgsql:

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

PostgreSQL/Npgsql provider for Entity Framework Core.

AspNetCore.HealthChecks.NpgSql

HealthChecks.NpgSql is a health check for Postgress Sql.

Hangfire.PostgreSql

PostgreSql storage implementation for Hangfire (background job system for ASP.NET and aspnet core applications).

Npgsql.Json.NET The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Json.NET plugin for Npgsql, allowing transparent serialization/deserialization of JSON objects directly to and from the database.

Npgsql.EntityFrameworkCore.PostgreSQL.Design

PostgreSQL/Npgsql provider for Entity Framework Core.

GitHub repositories (223)

Showing the top 5 popular GitHub repositories that depend on Npgsql:

Repository Stars
DapperLib/Dapper
Dapper - a simple object mapper for .Net
Sonarr/Sonarr
Smart PVR for newsgroup and bittorrent users.
dotnet/orleans
Cloud Native application framework for .NET
Radarr/Radarr
Movie organizer/manager for usenet and torrent users.
nopSolutions/nopCommerce
ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
Version Downloads Last updated
8.0.2 2,649,301 2/10/2024
8.0.1 1,715,653 12/4/2023
8.0.0 3,881,812 11/21/2023
8.0.0-rc.2 161,829 10/11/2023
8.0.0-preview.4 225,276 5/17/2023
8.0.0-preview.3 45,230 4/24/2023
8.0.0-preview.2 45,994 3/20/2023
8.0.0-preview.1 72,329 3/3/2023
7.0.6 8,150,336 9/14/2023
7.0.4 14,605,753 4/24/2023
7.0.2 8,923,276 2/15/2023
7.0.1 6,566,274 12/17/2022
7.0.0 4,803,200 11/9/2022
7.0.0-rc.2 68,266 10/11/2022
7.0.0-rc.1 34,853 9/16/2022
7.0.0-preview.7 39,310 8/9/2022
7.0.0-preview.6 33,059 7/13/2022
7.0.0-preview.5 17,357 6/19/2022
7.0.0-preview.4 37,583 5/11/2022
7.0.0-preview.3 40,652 4/19/2022
7.0.0-preview.2 42,763 3/16/2022
7.0.0-preview.1 3,382,123 2/17/2022
6.0.10 1,412,862 9/14/2023
6.0.9 2,180,461 2/15/2023
6.0.8 6,871,279 12/17/2022
6.0.7 11,813,867 9/16/2022
6.0.6 9,918,275 8/4/2022
6.0.5 7,401,539 6/19/2022
6.0.4 10,159,080 4/19/2022
6.0.3 12,158,020 1/27/2022
6.0.2 4,966,970 12/20/2021
6.0.1 7,386,187 12/3/2021
6.0.0 17,276,110 11/9/2021
6.0.0-rc.2 139,971 10/14/2021
6.0.0-rc.1 84,163 9/24/2021
6.0.0-preview7 39,251 8/16/2021
6.0.0-preview6 10,687 7/31/2021
6.0.0-preview5 58,732 7/1/2021
6.0.0-preview4 59,858 5/27/2021
6.0.0-preview3 62,851 4/15/2021
6.0.0-preview2 68,094 3/11/2021
5.0.17 103,640 9/14/2023
5.0.16 261,761 2/15/2023
5.0.15 420,945 9/16/2022
5.0.14 320,226 6/19/2022
5.0.13 377,713 4/26/2022
5.0.12 772,006 2/1/2022
5.0.11 2,101,086 11/12/2021
5.0.10 9,578,060 9/15/2021
5.0.7 12,920,922 6/13/2021
5.0.5 4,417,619 5/11/2021
5.0.4 6,906,855 3/25/2021
5.0.3 6,203,484 1/26/2021
5.0.2 4,343,932 1/19/2021
5.0.1.1 2,603,617 12/12/2020
5.0.0 4,475,789 11/15/2020
4.1.12 727,337 6/19/2022
4.1.11 89,764 4/26/2022
4.1.10 725,681 11/12/2021
4.1.9 3,011,951 4/6/2021
4.1.8 3,044,693 1/21/2021
4.1.7 438,261 12/12/2020
4.1.6 1,064,874 11/15/2020
4.1.5 5,193,070 9/28/2020
4.1.4 3,955,548 7/19/2020
4.1.3.1 19,282,846 2/20/2020
4.1.3 7,646,661 1/31/2020
4.1.2 5,366,811 11/14/2019
4.1.1 3,804,287 10/2/2019
4.1.0 654,051 9/26/2019
4.0.13 99,233 6/19/2022
4.0.12 92,503 5/16/2021
4.0.11 482,774 7/19/2020
4.0.10 5,478,115 9/9/2019
4.0.9 1,076,617 8/14/2019
4.0.8 912,767 7/18/2019
4.0.7 6,865,813 5/21/2019
4.0.6 3,379,311 4/11/2019
4.0.5 1,434,903 3/3/2019
4.0.4 7,710,209 12/6/2018
4.0.3 5,722,823 9/8/2018
4.0.2 3,306,463 7/8/2018
4.0.1 747,556 7/1/2018
4.0.0 1,769,621 5/30/2018
4.0.0-rc1 89,923 5/8/2018
4.0.0-preview2 103,927 4/11/2018
4.0.0-preview1 18,203 3/19/2018
3.2.7 6,730,656 2/27/2018
3.2.6 5,534,237 12/3/2017
3.2.5 6,609,936 7/25/2017
3.2.4.1 237,171 6/22/2017
3.2.4 26,028 6/13/2017
3.2.3 63,391 6/1/2017
3.2.2 1,610,611 3/21/2017
3.2.1 116,975 2/14/2017
3.2.0 70,108 1/27/2017
3.1.10 83,587 2/14/2017
3.1.9 6,020,569 11/20/2016
3.1.8 372,166 9/24/2016
3.1.7 490,323 8/6/2016
3.1.6 128,180 7/12/2016
3.1.5 277,822 6/28/2016
3.1.4 75,491 6/16/2016
3.1.3 274,899 5/30/2016
3.1.2 143,101 5/22/2016
3.1.1 215,484 5/19/2016
3.1.0 145,327 5/16/2016
3.0.8 52,334 6/16/2016
3.0.7 33,518 5/3/2016
3.0.6 9,105 5/1/2016
3.0.5 273,699 1/1/2016
3.0.4 34,770 12/6/2015
3.0.3 64,342 9/27/2015
3.0.2 36,771 9/4/2015
3.0.1 31,196 8/18/2015
3.0.0 45,275 8/7/2015
2.2.7 415,572 9/18/2015
2.2.6 48,701 8/27/2015
2.2.5 341,471 3/11/2015
2.2.4.3 47,271 2/6/2015
2.2.4.1 17,095 2/3/2015
2.2.3 350,197 11/26/2014
2.2.2 36,277 11/1/2014
2.2.1 55,648 9/24/2014
2.2.0 29,335 9/1/2014
2.1.3 76,238 4/9/2014
2.1.2 16,265 3/28/2014
2.1.1 16,562 3/21/2014
2.1.0 31,319 3/19/2014
2.0.14.3 86,217 12/21/2013
2.0.12.1 72,569 12/17/2012
2.0.11 211,004 2/6/2011

https://github.com/npgsql/Npgsql/releases/tag/v2.2.0-beta1

Major highlights
Visual Studio DDEX support

Kenji Uno added support for DDEX. Now you can use Npgsql with Visual Studio data designer. This is a missing feature a lot of our users requested in the past. Kenji added a tutorial about how to use Npgsql with DDEX. You can find it here: https://github.com/npgsql/Npgsql/wiki/Visual-Studio-Design-Time-Support---DDEX-Provider#install-npgsqlddexprovidervsix
Entity Framework
David Karlaš added support for EFMigration and Database creation in EF6+

Now it is possible to start Code First projects without needing to create a database upfront. EntityFramework and Npgsql will take care of it.
Emil Lenngren added support for a lot of missing features of EntityFramework.

A list containing fixes from David and Emil as well as others for EntityFramework can be seen here: https://github.com/npgsql/Npgsql/issues?direction=desc&labels=entity+framework&milestone=2&page=1&sort=created&state=closed
SSLStream support

In this release, SSLStream is on by default.
If you want to use Mono.Security, you will need to use the following line in your code:

NpgsqlConnection.UseSslStream = false;

Note that in future releases, this option may not be available anymore as we are removing the dependency on Mono.Security assembly. Let us know in the forums if you have any problem with ssl when using SSLStream. This will help us check if we will be able to remove Mono.Security assembly.
Added support for JSON, JSONB and HSTORE datatypes

Shay added support for those datatypes.
Added GSSAPI support on Windows

Brian Crowell added support for GSSAPI on windows. [#170]
Removed support for protocol 2

Postgresql versions which use only protocol 2 are very old and don't receive support from postgresql group anymore. By removing this support, we removed a lot of code and can focus on functionalities provided by protocol 3.
Removed support for Postgresql 8.3 and below

In this thread, https://groups.google.com/forum/#!topic/npgsql-dev/omQ40Eq0HoA, we talked about making Npgsql support the officially supported postgresql versions. This means end of support for postgresql 8.3 and below in the Npgsql 2.2 and up. If you still need support for 7.x, please, use 2.0.x versions.