Npgsql 2.2.0-beta1

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.

This is a prerelease version of Npgsql.
There is a newer version of this package available.
See the version list below for details.
Install-Package Npgsql -Version 2.2.0-beta1
dotnet add package Npgsql --version 2.2.0-beta1
<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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Npgsql, 2.2.0-beta1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

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.

Dependencies

This package has no dependencies.

NuGet packages (796)

Showing the top 5 NuGet packages that depend on Npgsql:

Package Downloads
Npgsql.EntityFrameworkCore.PostgreSQL
PostgreSQL/Npgsql provider for Entity Framework Core.
Npgsql.EntityFrameworkCore.PostgreSQL.Design
PostgreSQL/Npgsql provider for Entity Framework Core.
Hangfire.PostgreSql
PostgreSql storage implementation for Hangfire (background job system for ASP.NET and aspnet core applications).
AspNetCore.HealthChecks.NpgSql
HealthChecks.NpgSql is a health check for Postgress Sql.
Npgsql.Json.NET
Json.NET plugin for Npgsql, allowing transparent serialization/deserialization of JSON objects directly to and from the database.

GitHub repositories (143)

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

Repository Stars
DapperLib/Dapper
Dapper - a simple object mapper for .Net
bitwarden/server
The core infrastructure backend (API, database, Docker, etc).
dotnet/orleans
Orleans is a cross-platform framework for building distributed applications with .NET
nopSolutions/nopCommerce
The most popular open-source eCommerce shopping cart solution based on ASP.NET Core
ServiceStack/ServiceStack
Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all

Version History

Version Downloads Last updated
6.0.0-preview3 2,300 4/15/2021
6.0.0-preview2 7,776 3/11/2021
5.0.4 318,407 3/25/2021
5.0.3 831,272 1/26/2021
5.0.2 1,018,642 1/19/2021
5.0.1.1 770,937 12/12/2020
5.0.0 1,103,603 11/15/2020
5.0.0-preview1 200,193 10/13/2020
5.0.0-alpha1 29,120 6/17/2020
4.1.9 12,981 4/6/2021
4.1.8 328,204 1/21/2021
4.1.7 160,633 12/12/2020
4.1.6 232,596 11/15/2020
4.1.5 916,996 9/28/2020
4.1.4 1,567,242 7/19/2020
4.1.3.1 7,358,232 2/20/2020
4.1.3 4,061,877 1/31/2020
4.1.2 2,760,079 11/14/2019
4.1.1 1,678,112 10/2/2019
4.1.0 286,603 9/26/2019
4.1.0-preview2 87,372 9/4/2019
4.1.0-preview1 30,072 8/15/2019
4.0.11 66,097 7/19/2020
4.0.10 2,036,004 9/9/2019
4.0.9 660,019 8/14/2019
4.0.8 566,159 7/18/2019
4.0.7 4,129,199 5/21/2019
4.0.6 2,047,031 4/11/2019
4.0.5 752,032 3/3/2019
4.0.4 4,775,159 12/6/2018
4.0.3 3,994,720 9/8/2018
4.0.2 1,985,625 7/8/2018
4.0.1 567,522 7/1/2018
4.0.0 1,224,718 5/30/2018
4.0.0-rc1 41,149 5/8/2018
4.0.0-preview2 36,131 4/11/2018
4.0.0-preview1 14,406 3/19/2018
3.2.7 2,140,419 2/27/2018
3.2.6 2,734,659 12/3/2017
3.2.5 3,267,574 7/25/2017
3.2.4.1 177,899 6/22/2017
3.2.4 19,512 6/13/2017
3.2.3 50,479 6/1/2017
3.2.2 1,291,608 3/21/2017
3.2.1 85,545 2/14/2017
3.2.0 44,204 1/27/2017
3.2.0-beta1 3,633 1/11/2017
3.1.10 47,291 2/14/2017
3.1.9 1,217,868 11/20/2016
3.1.8 258,297 9/24/2016
3.1.7 209,669 8/6/2016
3.1.6 77,597 7/12/2016
3.1.5 198,142 6/28/2016
3.1.4 42,338 6/16/2016
3.1.3 247,746 5/30/2016
3.1.2 36,894 5/22/2016
3.1.1 113,172 5/19/2016
3.1.0 63,503 5/16/2016
3.1.0-beta0001 3,699 5/5/2016
3.1.0-alpha6 20,757 12/7/2015
3.1.0-alpha5 7,141 11/18/2015
3.1.0-alpha4 2,527 11/18/2015
3.1.0-alpha3 5,043 10/16/2015
3.1.0-alpha2 2,748 10/16/2015
3.1.0-alpha1 3,669 9/6/2015
3.0.8 17,820 6/16/2016
3.0.7 21,495 5/3/2016
3.0.6 5,131 5/1/2016
3.0.5 174,889 1/1/2016
3.0.4 19,763 12/6/2015
3.0.3 47,863 9/27/2015
3.0.2 16,645 9/4/2015
3.0.1 25,431 8/18/2015
3.0.0 19,972 8/7/2015
3.0.0-rc0002 3,506 7/17/2015
3.0.0-rc0001 2,624 7/12/2015
3.0.0-beta0001 3,128 5/25/2015
2.2.7 242,133 9/18/2015
2.2.6 16,111 8/27/2015
2.2.5 229,921 3/11/2015
2.2.4.3 24,154 2/6/2015
2.2.4.1 9,149 2/3/2015
2.2.3 183,860 11/26/2014
2.2.2 14,492 11/1/2014
2.2.1 39,503 9/24/2014
2.2.0 15,082 9/1/2014
2.2.0-rc2 4,175 8/17/2014
2.2.0-rc1 2,802 8/5/2014
2.2.0-beta1 2,859 7/23/2014
2.1.3 40,434 4/9/2014
2.1.2 9,961 3/28/2014
2.1.1 12,852 3/21/2014
2.1.0 9,715 3/19/2014
2.1.0-rc1 3,282 2/9/2014
2.1.0-beta1 4,171 12/26/2013
2.0.14.3 53,516 12/21/2013
2.0.13-beta1 6,391 7/14/2013
2.0.12.1 49,313 12/17/2012
2.0.11 71,559 2/6/2011
Show less