AwadyLab.EFCatalyst.PostgreSql 1.0.2

dotnet add package AwadyLab.EFCatalyst.PostgreSql --version 1.0.2
                    
NuGet\Install-Package AwadyLab.EFCatalyst.PostgreSql -Version 1.0.2
                    
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="AwadyLab.EFCatalyst.PostgreSql" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AwadyLab.EFCatalyst.PostgreSql" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="AwadyLab.EFCatalyst.PostgreSql" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AwadyLab.EFCatalyst.PostgreSql --version 1.0.2
                    
#r "nuget: AwadyLab.EFCatalyst.PostgreSql, 1.0.2"
                    
#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.
#:package AwadyLab.EFCatalyst.PostgreSql@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AwadyLab.EFCatalyst.PostgreSql&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=AwadyLab.EFCatalyst.PostgreSql&version=1.0.2
                    
Install as a Cake Tool

AwadyLab.EFCatalyst.PostgreSql

PostgreSQL (Npgsql) support for AwadyLab.EFCatalyst: deadlock detection and PostgreSQL SQL for the EFCatalyst migration operations.

Target License


Overview

The package registers, in EF Core's internal service provider, a PostgreSQL dialect (deadlock detection, seed-history DDL) and a migrations SQL generator that translates the EFCatalyst migration operations and delegates everything else to the Npgsql provider's own generator.

Key Highlights

  • Concurrency: the database does not maintain IRowVersion, so the save pipeline's concurrency step rotates the token; a conflict throws EFCatalystConcurrencyException.
  • Deadlock Detection: SQLSTATE 40P01 is recognised, so DeadlockRetryInterceptor can retry the command (outside transactions).
  • Migration Helpers in PostgreSQL SQL: views, functions, ON CONFLICT upserts, soft-delete and timestamp triggers, and filtered indexes.

Installation

dotnet add package AwadyLab.EFCatalyst.PostgreSql

Quickstart

services.AddDbContext<ShopContext>((sp, o) => o
    .UseNpgsql(connectionString)
    .UseEFCatalystPostgreSql()
    .UseEFCatalystInterceptors(sp));

If you replace IMigrationsSqlGenerator yourself, derive from the EFCatalyst one or call UseEFCatalystPostgreSql() after your replacement.


License

Proprietary — see the core package, AwadyLab.EFCatalyst. Full documentation lives in the core package's repository (README.md).

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in 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
1.0.2 96 10/2/2026
1.0.1 91 10/2/2026
1.0.0 103 9/30/2026