Rwx.Persistence.EfCore 0.3.1

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

Rwx.Persistence.EfCore

Entity Framework Core repositories, unit of work, auditing/domain-event interceptors, durable integration-event inbox, and shared model-building helpers.

Install

dotnet add package Rwx.Persistence.EfCore --version 0.1.0

Quick start

Register your context and bind repositories to that specific context:

using Microsoft.EntityFrameworkCore;
using Rwx.Persistence.EfCore;
using Rwx.Persistence.EfCore.Interceptors;

builder.Services.AddRwxAuditing();
builder.Services.AddDbContext<AppDbContext>((provider, options) =>
    options.UseNpgsql(connectionString)
        .AddInterceptors(
            provider.GetRequiredService<AuditableEntityInterceptor>(),
            provider.GetRequiredService<DomainEventsInterceptor>()));
builder.Services.AddRwxRepository<AppDbContext>();
builder.Services.AddRwxUnitOfWork<AppDbContext>();
builder.Services.AddRwxInbox();

In OnModelCreating, explicitly apply the Rwx-owned configuration when using the durable inbox:

modelBuilder.ApplyConfiguration(new InboxMessageConfiguration());

AddRwxRepository<TDbContext>() is recommended: it scans public DbSet<TEntity> properties and avoids ambiguity in services with multiple contexts. AddRwxRepository() is suitable only for a single-context service.

Call ApplyRwxSoftDeleteQueryFilter() after entity configurations to exclude soft-deleted entities. Contexts implementing IRwxTenantDbContext can also call ApplyRwxOrgQueryFilter(this) for organization scoping.

Required composition rules

Every aggregate-persisting context must register both Rwx interceptors shown above. Apply InboxMessageConfiguration and call AddRwxInbox() only when consuming messages needs durable deduplication. EF configuration belongs to the consuming service's DbContext; this package never creates or applies migrations. Repositories and unit of work are scoped and must share the same context/transaction.

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. 
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
0.3.1 236 7/26/2026
0.3.0 140 7/20/2026
0.2.2 170 7/14/2026
0.2.1 119 7/13/2026
0.1.1 113 7/12/2026
0.1.0 106 7/12/2026
0.0.2 111 7/12/2026
0.0.1 122 7/12/2026