NOF.Infrastructure.NHibernate
11.0.0-nightly.1447844.3ec67f89
dotnet add package NOF.Infrastructure.NHibernate --version 11.0.0-nightly.1447844.3ec67f89
NuGet\Install-Package NOF.Infrastructure.NHibernate -Version 11.0.0-nightly.1447844.3ec67f89
<PackageReference Include="NOF.Infrastructure.NHibernate" Version="11.0.0-nightly.1447844.3ec67f89" />
<PackageVersion Include="NOF.Infrastructure.NHibernate" Version="11.0.0-nightly.1447844.3ec67f89" />
<PackageReference Include="NOF.Infrastructure.NHibernate" />
paket add NOF.Infrastructure.NHibernate --version 11.0.0-nightly.1447844.3ec67f89
#r "nuget: NOF.Infrastructure.NHibernate, 11.0.0-nightly.1447844.3ec67f89"
#:package NOF.Infrastructure.NHibernate@11.0.0-nightly.1447844.3ec67f89
#addin nuget:?package=NOF.Infrastructure.NHibernate&version=11.0.0-nightly.1447844.3ec67f89&prerelease
#tool nuget:?package=NOF.Infrastructure.NHibernate&version=11.0.0-nightly.1447844.3ec67f89&prerelease
NOF.Infrastructure.NHibernate
NHibernate persistence package for the NOF Framework.
Overview
NOF.Infrastructure.NHibernate provides an NHibernate-based implementation of the NOF persistence abstractions.
Current scope:
UseNHibernate()- NHibernate-backed
IDbContextandIDbContextFactory - contributor-based entity mapping through
IDbContextModelCreatingContributor - tenant-aware connection-string resolution for
TenantMode.DatabasePerTenant
Current limitations:
TenantMode.SharedDatabaseis not supported yetAsNoTracking()currently returns the same LINQ query shape without a dedicated no-tracking session- schema management is limited to NHibernate
SchemaUpdate
In DatabasePerTenant mode, the host database and all tenant databases use the same model and
therefore the same schema. Tenant databases must accept tables used only by host-level features as
an intentional, potentially empty schema superset. This avoids separate host and tenant model,
schema-update, provider, and deployment paths.
Usage
using NHibernate.Dialect;
using NHibernate.Driver;
using NOF.Infrastructure.NHibernate;
var builder = NOFWebApplicationBuilder.Create(args);
builder.UseNHibernate()
.WithConnectionString("Data Source=nof-{tenantId}.db")
.WithOptions((configuration, connectionString) =>
{
configuration.DataBaseIntegration(db =>
{
db.ConnectionString = connectionString;
db.Dialect<SQLiteDialect>();
db.Driver<SQLite20Driver>();
});
})
.BuildSchemaOnInitialize();
| 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
- Microsoft.Extensions.Caching.Abstractions (>= 10.0.0 && < 10.1.0)
- Microsoft.Extensions.Configuration (>= 10.0.0 && < 10.1.0)
- Microsoft.Extensions.DependencyInjection (>= 10.0.0 && < 10.1.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0 && < 10.1.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.0 && < 10.1.0)
- Microsoft.Extensions.Http (>= 10.0.0 && < 10.1.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.0 && < 10.1.0)
- Microsoft.Extensions.Options (>= 10.0.0 && < 10.1.0)
- NHibernate (>= 5.6.0 && < 5.7.0)
- NOF.Application (>= 11.0.0-nightly.1447844.3ec67f89)
- NOF.Hosting (>= 11.0.0-nightly.1447844.3ec67f89)
- NOF.Infrastructure (>= 11.0.0-nightly.1447844.3ec67f89)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.15.3 && < 1.16.0)
- OpenTelemetry.Extensions.Hosting (>= 1.15.0 && < 1.16.0)
- OpenTelemetry.Instrumentation.Http (>= 1.15.0 && < 1.16.0)
- OpenTelemetry.Instrumentation.Runtime (>= 1.15.0 && < 1.16.0)
- System.IdentityModel.Tokens.Jwt (>= 8.15.0 && < 8.16.0)
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 |
|---|---|---|
| 11.0.0-nightly.1447844... | 39 | 10/2/2026 |
| 11.0.0-nightly.1430269... | 58 | 9/20/2026 |
| 11.0.0-nightly.1429244... | 52 | 9/19/2026 |
| 11.0.0-nightly.1429196... | 51 | 9/19/2026 |
| 11.0.0-nightly.1429120... | 54 | 9/19/2026 |
| 11.0.0-nightly.1423173... | 56 | 9/15/2026 |
| 11.0.0-nightly.1421455... | 55 | 9/14/2026 |
| 11.0.0-nightly.1420571... | 50 | 9/13/2026 |
| 11.0.0-nightly.1411598... | 59 | 9/7/2026 |
| 11.0.0-nightly.1407388... | 60 | 9/4/2026 |
| 11.0.0-nightly.1407250... | 58 | 9/4/2026 |
| 11.0.0-nightly.1407109... | 72 | 9/4/2026 |
| 11.0.0-nightly.1405890... | 66 | 9/3/2026 |
| 11.0.0-nightly.1403070... | 59 | 9/1/2026 |
| 11.0.0-nightly.1402896... | 58 | 9/1/2026 |
| 11.0.0-nightly.1394496... | 60 | 8/26/2026 |
| 11.0.0-nightly.1391656... | 65 | 8/24/2026 |
| 11.0.0-nightly.1387180... | 67 | 8/21/2026 |
| 11.0.0-nightly.1385860... | 65 | 8/20/2026 |
| 11.0.0-nightly.1377026... | 70 | 8/14/2026 |