layout | title |
---|---|
page |
Getting Npgsql |
The best way to install Npgsql in your project is with our nuget package, Npgsql.
- For Entity Framework 6, install EntityFramework6.Npgsql (In Npgsql 2.2 and earlier the package was Npgsql.EntityFramework.
- For Entity Framework 5, install EntityFramework5.Npgsql (or Npgsql.EntityFrameworkLegacy in Npgsql 2.2).
- An Entity Framework 7 provider is in the works but is still unsuitable for actual use. You can try it out via our unstable feed (see below), package name EntityFramework7.Npgsql.
In some cases you'll want to install Npgsql into your
Global Assembly Cache (GAC).
This is usually the case when you're using a generic database program that can work with any ADO.NET provider but doesn't come
with Npgsql or reference it directly. For these cases, you can download the Npgsql Windows installer from
our Github releases page: it will install Npgsql (and optionally the Entity Framework
providers) into your GAC and add Npgsql's DbProviderFactory into your machine.config
file.
This is not the general recommended method of using Npgsql - install via Nuget if possible.
If you'd like to have Visual Studio Design-Time support, you can try our experimental installer Setup_NpgsqlDdexProvider.exe. And then follow the instructions in the documentation.
Our build server publishes CI nuget packages for every build. If a bug affecting you was fixed but there hasn't yet been a patch release, you can get a CI nuget at our stable MyGet feed. These packages are generally stable and safe to use (although it's better to wait for a release).
We also publish CI packages for the next minor/major version at our unstable MyGet feed. These are definitely unstable and should be used with care.