![]() |
VOOZH | about |
dotnet add package Devart.Data.PostgreSql.EF6 --version 9.1.123
NuGet\Install-Package Devart.Data.PostgreSql.EF6 -Version 9.1.123
<PackageReference Include="Devart.Data.PostgreSql.EF6" Version="9.1.123" />
<PackageVersion Include="Devart.Data.PostgreSql.EF6" Version="9.1.123" />Directory.Packages.props
<PackageReference Include="Devart.Data.PostgreSql.EF6" />Project file
paket add Devart.Data.PostgreSql.EF6 --version 9.1.123
#r "nuget: Devart.Data.PostgreSql.EF6, 9.1.123"
#:package Devart.Data.PostgreSql.EF6@9.1.123
#addin nuget:?package=Devart.Data.PostgreSql.EF6&version=9.1.123Install as a Cake Addin
#tool nuget:?package=Devart.Data.PostgreSql.EF6&version=9.1.123Install as a Cake Tool
dotConnect for PostgreSQL is a high-performance ORM enabled data provider for PostgreSQL that builds on ADO.NET technology.
The provider works with .NET Frameworks 2.0+, .NET Core 2.0+, .NET 5+. The product is compatible with ADO.NET Entity Framework (EF) Core.
It supports a wide range of PostgreSQL-specific features, such as secure SSL and SSH connections, PostgreSQL notifications, PostgreSQL bulk data loading, GEOMETRY, PostgreSQL ARRAY types, and others.
More information at dotConnect for PostgreSQL.
The following table show which version of this package to use with which version of frameworks.
| Frameworks | Version support |
|---|---|
| Entity Framework Core | 8 |
| .NET | 10, 9, 8 |
More information here
For projects, using Entity Framework Core 8 with PostgreSQL, install this package. Execute the following command in the Package Manager Console:
Install-Package Devart.Data.PostgreSql.EFCore
For projects that require integration with Entity Framework 6.4 (EF6), use the Devart.Data.PostgreSql.EF6 package.
There also are Visual Studio extensions for earlier Visual Studio versions. If you use some other tool than Visual Studio, you can get NuGet packages with the nuget.exe console tool.
dotConnect for PostgreSQL is available in several editions. See pricing options for ordering.
The NuGet package initiates the retrieval of an activation key from the Devart website. This key is required to activate the product for a free trial.
This snippet directly configures a PostgreSQL database connection for an Entity Framework Core DbContext using a connection string.
public class MyDbContext : DbContext {
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {
optionsBuilder.UsePostgreSql(@"UserId=postgres;Password=postgres;Host=127.0.0.1;Port=5432;Database=test;Schema=pg_catalog;");
}
}
Configuration Using PostgreSqlConnection Instance
using Devart.Data.PostgreSql;
...
public class MyDbContext : DbContext {
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {
var connection = new PostgreSqlConnection();
connection.Host = "127.0.0.1";
connection.Port = 5432;
connection.UserId = "postgres";
connection.Password = "postgres";
connection.Database = "test";
connection.Schema = "pg_catalog";
optionsBuilder.UsePostgreSql(connection);
}
}
Configuration File (appsettings.json):
{
"ConnectionStrings": {
"DefaultConnection": "UserId=postgres;Password=postgres;Host=127.0.0.1;Port=5432;Database=test;Schema=pg_catalog;"
}
}
DbContext Configuration:
public class MyDbContext : DbContext {
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) {
IConfigurationBuilder builder = new ConfigurationBuilder().AddJsonFile("appsettings.json");
IConfiguration configuration = builder.Build();
optionsBuilder.UsePostgreSql(configuration.GetConnectionString("DefaultConnection"));
}
}
For more information about secure connections using SSL or SSH connections read at out documentation.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 netstandard2.1 is compatible. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 9.1.123 | 23 | 6/17/2026 |
| 9.1.100 | 369 | 5/25/2026 |
| 9.1.72 | 575 | 4/23/2026 |
| 9.1.35 | 1,142 | 3/6/2026 |
| 9.1.33 | 1,184 | 2/24/2026 |
| 9.0.0 | 1,700 | 12/19/2025 |
| 8.4.290 | 5,126 | 7/30/2025 |
| 8.4.235 | 2,504 | 4/25/2025 |
| 8.4.193 | 2,644 | 2/11/2025 |
| 8.4.191 | 2,450 | 1/15/2025 |
| 8.4.190 | 2,695 | 12/27/2024 |
| 8.3.104 | 2,561 | 11/8/2024 |
| 8.3.21 | 2,534 | 6/6/2024 |
| 8.3.20 | 2,474 | 5/30/2024 |
| 8.3.10 | 4,474 | 1/18/2024 |
| 8.2.0 | 2,589 | 11/17/2023 |
| 8.1.151 | 3,480 | 6/7/2023 |
| 8.1.134 | 2,893 | 3/4/2023 |
| 8.0.0 | 8,819 | 7/1/2022 |
| 7.24.2066 | 3,391 | 1/26/2022 |