Devart.Data.PostgreSql.EF6 8.4.190

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Devart.Data.PostgreSql.EF6 --version 8.4.190                
NuGet\Install-Package Devart.Data.PostgreSql.EF6 -Version 8.4.190                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Devart.Data.PostgreSql.EF6" Version="8.4.190" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Devart.Data.PostgreSql.EF6 --version 8.4.190                
#r "nuget: Devart.Data.PostgreSql.EF6, 8.4.190"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Devart.Data.PostgreSql.EF6 as a Cake Addin
#addin nuget:?package=Devart.Data.PostgreSql.EF6&version=8.4.190

// Install Devart.Data.PostgreSql.EF6 as a Cake Tool
#tool nuget:?package=Devart.Data.PostgreSql.EF6&version=8.4.190                

dotConnect for PostgreSQL

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 1.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.

Compatibility


The following table show which version of this package to use with which version of frameworks.

Frameworks Version support
Entity Framework Core 8
.NET 9, 8

More information here

Installation


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.

License

dotConnect for PostgreSQL is available in several editions. See pricing options for ordering.

To activate your license, please download dotConnect for PostgreSQL from our website. This installer generates the trial key files required for using this package on a trial basis.

Usage


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);
  } 
}
ASP.NET Core and Blazor

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.

Key Features

  • Easy Connection: Allows your .NET application to work with PostgreSQL data.
  • ASP.NET Core: Supports ASP.NET Core Identity.
  • Performance: Uses many PostgreSQL-specific performance features & optimizations to ensure the highest performance.
  • Monitoring: Allows per-component tracing of database events with a free dbMonitor application.
  • Security: Supports various encryption ciphers, SSL and SSH connections, etc.
  • Support and Updates: Enjoy dedicated support team for prompt issue resolution and regular updates to keep your software running smoothly and securely.

Support Area

More Resources

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
8.4.191 42 1/15/2025
8.4.190 85 12/27/2024
8.3.104 142 11/8/2024
8.3.21 185 6/6/2024
8.3.20 122 5/30/2024
8.3.10 521 1/18/2024
8.2.0 282 11/17/2023
8.1.151 1,021 6/7/2023
8.1.134 543 3/4/2023
8.0.0 4,261 7/1/2022
7.24.2066 978 1/26/2022
7.23.2042 308 12/21/2021
7.22.2014 901 11/9/2021
7.21.2001 388 10/21/2021
7.21.1985 344 9/28/2021
7.20.1944 453 7/30/2021
7.20.1930 984 7/8/2021
7.20.1905 373 6/3/2021
7.20.1866 993 4/9/2021
7.20.1860 575 4/1/2021
7.20.1836 433 2/18/2021
7.20.1812 595 1/14/2021
7.20.1792 556 12/17/2020
7.20.1782 520 12/3/2020
7.19.1759 869 10/29/2020
7.18.1739 438 10/1/2020
7.18.1730 587 9/17/2020
7.17.1696 557 7/30/2020
7.17.1686 505 7/16/2020
7.17.1666 498 6/17/2020
7.17.1612 679 4/2/2020
7.17.1583 645 2/20/2020
7.16.1541 1,769 12/23/2019
7.15.1519 1,052 11/21/2019
7.15.1504 636 10/31/2019
7.15.1499 776 10/24/2019
7.14.1470-preview 469 9/13/2019