Npgsql

.NET Data Provider for PostgreSQL

About Npgsql

Npgsql is the .NET data provider for PostgreSQL. It allows any program developed for .NET framework to access a PostgreSQL database server. It is implemented in 100% C# code. PostgreSQL versions since 9.0 are officially supported, others may work. Read more...

Latest News

  • Npgsql 3.0.5 is out

    Npgsql 3.0.5 is out and available at nuget.org.

    This release that could affect users setting MinPoolSize > 1. See issue #918.

    Also, when closing a pooled connection that had an active transaction, that transaction would not be rolled back immediately. This could cause issues and has been fixed - transactions are rolled back immediately upon close. See issue #927.

    Note that NpgsqlConnection’s DataSource property now returns a URL (e.g. tcp://localhost:5432). Code that relied on the contents of DataSource is probably now broken. See issue #903.

    Npgsql 2.2 had a Windows installer that would set up Npgsql in the GAC and update your machine.config file - this installer has been revived and will now be released with 3.x version (check our releases tab on Github. Note that in most use cases, Npgsql should not be installed into the GAC - use Nuget instead. See the installation page for more details.

    Is is strongly recommended that everyone upgrade. The full list of changes is available here.

    Happy new year 2016!

  • Npgsql 3.0.4 is out

    Npgsql 3.0.4 is out and available at nuget.org.

    This release fixes some important bugs reported since 3.0.3 came out.

    In addition, a new SQL Logging feature has been implemented, feel free to read the documentation.

    Is is recommended that everyone upgrade.

    The full list of changes is available here.

  • Npgsql EF7 provider released for rc1

    A new version of the Npgsql Entity Framework 7 provider has been released for the EF7 rc1.

    Try it out and let us know how it goes! Installation instructions can be found in the docs.

    Work is in progress on database-first (RevEng), expect it soon!

  • Npgsql EF7 provider released for beta8

    A new version of the Npgsql Entity Framework 7 provider has been released for the EF7 beta8 release earlier today.

    Apart from supporting beta8 the new provider adds support for .NET Core.

    Try it out and let us know how it goes! Installation instructions can be found in the docs.

  • Npgsql 3.0.3 is out

    Npgsql 3.0.3 is out and available at nuget.org.

    This release fixes some important bugs reported since 3.0.2 came out. Is is recommended that everyone upgrade.

    The full list of changes is available here.

Click here for older announcements