CasCap.Common.Configuration.PostgreSql 5.2.1

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

CasCap.Common.Configuration.PostgreSql

.NET 10/11 EF Core PostgreSQL authority for typed runtime configuration.

Installation

dotnet add package CasCap.Common.Configuration.PostgreSql

Usage

Register AddPostgresRuntimeConfiguration(settings, connectionString, baselineDto) before dependent hosted services. RuntimeConfigurationOptions fixes the application, arbitrary environment name, stable DTO contract identifier and version for the host lifetime. Inject the standard IOptionsMonitor<T> to observe validated reloads. The initial scope must already have a revision. Only non-secret operational controls belong here.

The context owns the fixed cascap_config schema in either a dedicated or existing database. It never migrates at startup; apply reviewed EF migrations externally. Reader-only deployments need SELECT on this schema. Keep migration permissions separate from operator publication rights.

PostgresRuntimeConfigurationStore<T>.PublishAsync appends a complete validated snapshot and advances its head in one transaction, using the expected current revision. ReadRevisionAsync provides historical typed reads. Direct operator SQL must use the same atomic journal/head shape; invalid payloads are rejected by readers, not activated. Database privileges must prevent UPDATE or DELETE of journal rows; EF mappings alone do not enforce append-only permissions.

Initial Slice Limits

An experimental source-build AOT pilot adds generated-metadata/explicit-validator registration and precompiled fixed query sites. Published JIT and .NET 11 Linux amd64 native processes exercise the real PostgreSQL adapter. EF emits substantial compatibility warnings; retain managed external migrations and do not infer production or normal prebuilt NuGet AOT support from this probe.

One typed contract per host, full snapshots, bounded payloads and direct polling are supported. Schema customization, idempotent command retries, paginated/as-of history, typed restore commands, store-generation recovery and outbox-backed Redis projection remain follow-up ADR phases. SQLite is available through the separate SQLite provider. Do not use this provisional slice for safety-critical controls or restore a database under running readers. First-publication and existing-scope races produce explicit concurrency failures.

See the consumer and operations guide for setup, typed publication, permissions and failure behavior; the optional Redis cache-aside trial for bounded read acceleration; and the ADR for the full intended scope.

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.  net11.0 is compatible. 
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
5.2.1 93 11/21/2026
5.2.0 136 11/14/2026
5.1.0 172 11/5/2026
5.0.0 111 11/1/2026