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.

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.

Showing the top 10 GitHub repositories that depend on Npgsql:

Repository Stars
StackExchange/Dapper
Dapper - a simple object mapper for .Net
dotnet/orleans
Orleans is a cross-platform framework for building distributed applications with .NET
ServiceStack/ServiceStack
Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
bitwarden/server
The core infrastructure backend (API, database, Docker, etc).
quartznet/quartznet
Quartz Enterprise Scheduler .NET
dotnetcore/CAP
Distributed transaction solution in micro-service base on eventually consistency, also an eventbus with Outbox pattern
sunkaixuan/SqlSugar
Best ORM Fastest ORM Simple Easy Sqlite orm Oracle ORM Mysql Orm postgresql ORm SqlServer oRm
ravendb/ravendb
ACID Document Database
dotnetcore/DotnetSpider
DotnetSpider, a .NET Standard web crawling library. It is lightweight, efficient and fast high-level web crawling & scraping framework
fluentmigrator/fluentmigrator
Fluent migrations framework for .NET

Version History

Version Downloads Last updated
4.1.1 58,450 10/2/2019
4.1.0 30,328 9/26/2019
4.1.0-preview2 20,317 9/4/2019
4.1.0-preview1 10,066 8/15/2019
4.0.10 73,389 9/9/2019
4.0.9 126,546 8/14/2019
4.0.8 116,269 7/18/2019
4.0.7 1,337,991 5/21/2019
4.0.6 720,148 4/11/2019
4.0.5 359,402 3/3/2019
4.0.4 2,307,367 12/6/2018
4.0.3 1,955,257 9/8/2018
4.0.2 954,536 7/8/2018
4.0.1 270,209 7/1/2018
4.0.0 761,780 5/30/2018
4.0.0-rc1 23,595 5/8/2018
4.0.0-preview2 14,087 4/11/2018
4.0.0-preview1 9,824 3/19/2018
3.2.7 1,126,184 2/27/2018
3.2.6 1,211,220 12/3/2017
3.2.5 1,817,689 7/25/2017
3.2.4.1 140,649 6/22/2017
3.2.4 17,148 6/13/2017
3.2.3 43,459 6/1/2017
3.2.2 587,368 3/21/2017
3.2.1 74,047 2/14/2017
3.2.0 40,036 1/27/2017
3.2.0-beta1 3,194 1/11/2017
3.1.10 30,728 2/14/2017
3.1.9 488,275 11/20/2016
3.1.8 199,420 9/24/2016
3.1.7 149,313 8/6/2016
3.1.6 63,950 7/12/2016
3.1.5 185,754 6/28/2016
3.1.4 22,179 6/16/2016
3.1.3 219,243 5/30/2016
3.1.2 27,655 5/22/2016
3.1.1 61,794 5/19/2016
3.1.0 52,996 5/16/2016
3.1.0-beta0001 3,148 5/5/2016
3.1.0-alpha6 20,055 12/7/2015
3.1.0-alpha5 13,039 11/18/2015
3.1.0-alpha4 3,931 11/18/2015
3.1.0-alpha3 4,436 10/16/2015
3.1.0-alpha2 2,198 10/16/2015
3.1.0-alpha1 3,227 9/6/2015
3.0.8 11,872 6/16/2016
3.0.7 17,973 5/3/2016
3.0.6 4,144 5/1/2016
3.0.5 142,298 1/1/2016
3.0.4 17,099 12/6/2015
3.0.3 43,151 9/27/2015
3.0.2 13,653 9/4/2015
3.0.1 24,109 8/18/2015
3.0.0 16,065 8/7/2015
3.0.0-rc0002 2,705 7/17/2015
3.0.0-rc0001 2,108 7/12/2015
3.0.0-beta0001 2,701 5/25/2015
2.2.7 165,068 9/18/2015
2.2.6 13,898 8/27/2015
2.2.5 176,994 3/11/2015
2.2.4.3 20,509 2/6/2015
2.2.4.1 8,241 2/3/2015
2.2.3 136,421 11/26/2014
2.2.2 12,990 11/1/2014
2.2.1 30,952 9/24/2014
2.2.0 10,949 9/1/2014
2.2.0-rc2 3,566 8/17/2014
2.2.0-rc1 2,264 8/5/2014
2.2.0-beta1 2,039 7/23/2014
2.1.3 29,170 4/9/2014
2.1.2 7,447 3/28/2014
2.1.1 11,664 3/21/2014
2.1.0 5,253 3/19/2014
2.1.0-rc1 2,611 2/9/2014
2.1.0-beta1 3,368 12/26/2013
2.0.14.3 41,137 12/21/2013
2.0.13-beta1 4,470 7/14/2013
2.0.12.1 41,318 12/17/2012
2.0.11 55,607 2/6/2011
Show less