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
<PackageReference Include="CasCap.Common.Configuration.PostgreSql" Version="5.2.1" />
<PackageVersion Include="CasCap.Common.Configuration.PostgreSql" Version="5.2.1" />
<PackageReference Include="CasCap.Common.Configuration.PostgreSql" />
paket add CasCap.Common.Configuration.PostgreSql --version 5.2.1
#r "nuget: CasCap.Common.Configuration.PostgreSql, 5.2.1"
#:package CasCap.Common.Configuration.PostgreSql@5.2.1
#addin nuget:?package=CasCap.Common.Configuration.PostgreSql&version=5.2.1
#tool nuget:?package=CasCap.Common.Configuration.PostgreSql&version=5.2.1
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 | Versions 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. |
-
net10.0
- CasCap.Common.Configuration.Runtime (>= 5.2.1)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.14)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 10.0.3)
-
net11.0
- CasCap.Common.Configuration.Runtime (>= 5.2.1)
- Microsoft.EntityFrameworkCore.Relational (>= 11.0.0)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 11.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.