Arham.Foundation.Persistence.EfCore.PostgreSql
0.6.0-preview.5
dotnet add package Arham.Foundation.Persistence.EfCore.PostgreSql --version 0.6.0-preview.5
NuGet\Install-Package Arham.Foundation.Persistence.EfCore.PostgreSql -Version 0.6.0-preview.5
<PackageReference Include="Arham.Foundation.Persistence.EfCore.PostgreSql" Version="0.6.0-preview.5" />
<PackageVersion Include="Arham.Foundation.Persistence.EfCore.PostgreSql" Version="0.6.0-preview.5" />
<PackageReference Include="Arham.Foundation.Persistence.EfCore.PostgreSql" />
paket add Arham.Foundation.Persistence.EfCore.PostgreSql --version 0.6.0-preview.5
#r "nuget: Arham.Foundation.Persistence.EfCore.PostgreSql, 0.6.0-preview.5"
#:package Arham.Foundation.Persistence.EfCore.PostgreSql@0.6.0-preview.5
#addin nuget:?package=Arham.Foundation.Persistence.EfCore.PostgreSql&version=0.6.0-preview.5&prerelease
#tool nuget:?package=Arham.Foundation.Persistence.EfCore.PostgreSql&version=0.6.0-preview.5&prerelease
Arham.Foundation.Persistence.EfCore.PostgreSql
PostgreSQL provider setup for Arham Foundation EF Core persistence.
Install
dotnet add package Arham.Foundation.Persistence.EfCore.PostgreSql
Example
using Arham.Foundation.Persistence.EfCore.Config;
using Arham.Foundation.Persistence.EfCore.PostgreSql;
var settings = new EfCoreSettings
{
ConnectionString = builder.Configuration.GetConnectionString("DefaultConnection")
};
options.UseArhamPostgreSql(settings);
Multitenancy (row-level security)
using Arham.Foundation.Persistence.EfCore.PostgreSql.Multitenancy;
options.UseArhamPostgreSqlMultitenancy(tenantContextProvider); // save guard + session GUC
// migrations, per tenant-scoped table:
migrationBuilder.EnableArhamTenantRowLevelSecurity("contacts");
Fail-closed PostgreSQL row-level security bound to a session GUC written on every connection open.
Run workloads under a non-superuser role. See docs/Multitenancy.md.
This package depends on Arham.Foundation.Persistence.EfCore and the PostgreSQL EF Core provider only.
| 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. |
-
net10.0
- Arham.Foundation.Persistence.EfCore (>= 0.6.0-preview.5)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 10.0.1)
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 |
|---|---|---|
| 0.6.0-preview.5 | 1,965 | 7/5/2026 |
| 0.6.0-preview.4 | 69 | 7/5/2026 |
| 0.6.0-preview.3 | 87 | 6/22/2026 |
| 0.6.0-preview.2 | 77 | 6/19/2026 |
| 0.6.0-preview.1 | 71 | 6/19/2026 |
| 0.6.0-preview.0 | 78 | 6/18/2026 |
| 0.5.0-Preview.0 | 70 | 6/18/2026 |
| 0.4.0-Preview.0 | 86 | 6/18/2026 |
| 0.3.0-Preview.0 | 78 | 6/17/2026 |
| 0.2.0-preview.0 | 180 | 6/17/2026 |
| 0.1.0-Preview.7 | 56 | 6/16/2026 |
| 0.1.0-Preview.6 | 62 | 6/16/2026 |
| 0.1.0-Preview.5 | 1,947 | 6/16/2026 |
| 0.1.0-preview.4 | 75 | 6/13/2026 |
| 0.1.0-Preview.3 | 75 | 6/13/2026 |
0.6.0-preview.5: multitenancy contracts (ITenantScopedEntity, ITenantContextProvider, StaticTenantContextProvider, MissingTenantContextException, CrossTenantWriteException) moved from Arham.Foundation.Persistence.EfCore to Arham.Foundation.Core (namespace Arham.Foundation.Core.Multitenancy) so domain layers can implement the tenant marker without an EF Core dependency. EF enforcement (TenantSaveChangesInterceptor, UseArhamMultitenancy, UseArhamTenantEnforcement) and the PostgreSQL RLS half are unchanged in their packages. Breaking within the 0.6.0 preview line: update usings from Arham.Foundation.Persistence.EfCore.Multitenancy to Arham.Foundation.Core.Multitenancy for the moved types. See CHANGELOG.md and docs/Multitenancy.md.