NovaCore.EntityFrameworkCore
0.3.0-preview.1
dotnet add package NovaCore.EntityFrameworkCore --version 0.3.0-preview.1
NuGet\Install-Package NovaCore.EntityFrameworkCore -Version 0.3.0-preview.1
<PackageReference Include="NovaCore.EntityFrameworkCore" Version="0.3.0-preview.1" />
<PackageVersion Include="NovaCore.EntityFrameworkCore" Version="0.3.0-preview.1" />
<PackageReference Include="NovaCore.EntityFrameworkCore" />
paket add NovaCore.EntityFrameworkCore --version 0.3.0-preview.1
#r "nuget: NovaCore.EntityFrameworkCore, 0.3.0-preview.1"
#:package NovaCore.EntityFrameworkCore@0.3.0-preview.1
#addin nuget:?package=NovaCore.EntityFrameworkCore&version=0.3.0-preview.1&prerelease
#tool nuget:?package=NovaCore.EntityFrameworkCore&version=0.3.0-preview.1&prerelease
NovaCore.EntityFrameworkCore
Entity Framework Core infrastructure adapter for NovaCore modular applications.
This package contains reusable EF Core DbContext registration, automatic database readiness checks, shared DbContext provider configuration hooks, repository base types, audit interception, query filters, automatic aggregate domain-event dispatch, EF-backed unit of work infrastructure, and opt-in reliable messaging.
Use ConfigureNovaCoreDbContexts(...) to configure provider options for every NovaCore DbContext from the composition root. Use ConfigureNovaCoreDbContext<TDbContext>(...) when one DbContext needs a specific provider or option set.
INovaCoreDbContextConnectionRouter is an opt-in EF adapter hook for changing a selected DbContext connection before unit-of-work transaction grouping. A router must fail closed, retain the compiled provider, and support direct EF operations with interceptors. NovaCore does not register a router globally; optional modules such as TenantManagement own their selection and security policy. Raw ADO.NET callers must invoke INovaCoreDbContextConnectionRoutingManager.RouteAsync(dbContext) before retrieving or opening the underlying connection.
Entities mapped by a BaseDbContext can explicitly implement IHasConcurrencyStamp for optimistic concurrency. The package maps the string property as a concurrency token and rotates it for Added and Modified entries registered through AddNovaCoreDbContext<TDbContext>(); stale writes throw DbUpdateConcurrencyException. See the framework's concurrency documentation for API and migration guidance.
Entities can also explicitly implement IHasExtraProperties. BaseDbContext maps the CLR ExtraProperties bag as a required JSON string with a structural comparer and deep snapshot, so in-place bag changes are saved. The convention supplies a {} default but no provider-specific column type, length, index, query, or encryption behavior; the entity owner must ship matching migrations.
For reliable messaging, implement INovaCoreReliableMessagingDbContext on the owning BaseDbContext and call AddNovaCoreEfCoreReliableMessaging<TEvent, TDbContext>() for each routed distributed event. The package persists Outbox/Inbox rows, uses bounded retry and expiring claims, deduplicates Inbox delivery, exposes dead-letter state and requeue APIs, and requires normal EF migrations. Broker adapters implement IDistributedEventTransport and call IEfCoreInboxProcessor; no broker client is included here.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net8.0
- Microsoft.EntityFrameworkCore (>= 8.0.13)
- Microsoft.EntityFrameworkCore.Relational (>= 8.0.13)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.13)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Options (>= 8.0.2)
- NovaCore.BuildingBlocks (>= 0.3.0-preview.1)
NuGet packages (14)
Showing the top 5 NuGet packages that depend on NovaCore.EntityFrameworkCore:
| Package | Downloads |
|---|---|
|
NovaCore.FileStorage.EntityFrameworkCore
File storage EF Core adapter for NovaCore official modules. |
|
|
NovaCore.Features.EntityFrameworkCore
Persistent Entity Framework Core feature value adapter for NovaCore modular applications. |
|
|
NovaCore.TenantManagement.EntityFrameworkCore
Tenant management EF Core adapter for NovaCore official modules. |
|
|
NovaCore.Identity.EntityFrameworkCore
Identity EF Core adapter for NovaCore official modules. |
|
|
NovaCore.AuditLogging.EntityFrameworkCore
Audit logging EF Core adapter for NovaCore official modules. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.3.0-preview.1 | 295 | 10/9/2026 |