Sylin.Koan.Data.Relational.Npgsql 0.21.0

dotnet add package Sylin.Koan.Data.Relational.Npgsql --version 0.21.0
                    
NuGet\Install-Package Sylin.Koan.Data.Relational.Npgsql -Version 0.21.0
                    
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="Sylin.Koan.Data.Relational.Npgsql" Version="0.21.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sylin.Koan.Data.Relational.Npgsql" Version="0.21.0" />
                    
Directory.Packages.props
<PackageReference Include="Sylin.Koan.Data.Relational.Npgsql" />
                    
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 Sylin.Koan.Data.Relational.Npgsql --version 0.21.0
                    
#r "nuget: Sylin.Koan.Data.Relational.Npgsql, 0.21.0"
                    
#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 Sylin.Koan.Data.Relational.Npgsql@0.21.0
                    
#: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=Sylin.Koan.Data.Relational.Npgsql&version=0.21.0
                    
Install as a Cake Addin
#tool nuget:?package=Sylin.Koan.Data.Relational.Npgsql&version=0.21.0
                    
Install as a Cake Tool

Sylin.Koan.Data.Relational.Npgsql

Shared Npgsql repository mechanics for Koan's PostgreSQL-wire Data providers.

Install

Application developers should install a concrete provider instead:

dotnet add package Sylin.Koan.Data.Connector.Postgres

Provider authors implementing another compatible PostgreSQL-wire connector can reference the mechanism directly:

dotnet add package Sylin.Koan.Data.Relational.Npgsql

Meaningful result

A concrete provider maps its resolved endpoint, identity, schema policy, and naming convention to NpgsqlRepositoryOptions, then returns NpgsqlRepository<TEntity,TKey> from its normal IDataAdapterFactory. The repository supplies the shared Entity CRUD, query, paging, batch, isolation, and schema behavior without borrowing or activating another provider connector.

Managed Id+object storage and explicit physical maps both compile into NpgsqlEntityPlan<TEntity,TKey> and execute through the same repository. Scalar names, object roots, nested jsonb paths, composite keys, and generated keys are plan differences—not alternate repositories. Nested writes preserve values outside the declared map.

Guarantees and limits

  • This package contains no KoanModule, discovery adapter, provider election, health contributor, or startup report.
  • Referencing it alone activates no Data provider and opens no connection.
  • Concrete providers retain ownership of configuration, source routing, identity, discovery, and operations reporting.
  • The immutable repository options carry the compiled DataSourcePlan; External DDL and read-only writes therefore remain denied below provider composition as well as at the framework facade.
  • The mechanism assumes compatible Npgsql/PostgreSQL-wire SQL behavior. Provider-specific differences must be explicit options or remain in the concrete connector; compatibility is not inferred from protocol alone.
  • NpgsqlStableOrder makes the one current ordering delta explicit: PostgreSQL may use its physical tuple identifier, while providers without that system column order by the compiled identity roots.
  • Warm entity plans are compiled once per bounded storage route; query translation and native parameter binding remain on the provider hot path without reflection-driven repository selection.

See TECHNICAL.md for the ownership boundary.

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 (2)

Showing the top 2 NuGet packages that depend on Sylin.Koan.Data.Relational.Npgsql:

Package Downloads
Sylin.Koan.Data.Connector.Postgres

PostgreSQL provider for Koan relational data: Dapper-based SQL integration with guardrails and governance.

Sylin.Koan.Data.Connector.Cockroach

CockroachDB provider for Koan Data: a lean concrete connector over the shared Npgsql execution family.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.21.0 38 7/30/2026
0.20.2 132 7/22/2026
0.20.1 150 7/22/2026