OrionAudit 0.11.3

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

OrionAudit

EF Core change-audit trail with JSON Patch diffs, multi-tenant support, time-travel reconstruction, and OpenTelemetry instrumentation.

dotnet add package OrionAudit

Quick start

using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Moongazing.OrionAudit;

services.AddOrionAudit<AppDbContext>(o => o
    .Audit<Order>()
    .Audit<Customer>(b => b.Hash(c => c.Email).Redact(c => c.Token)));

services.AddDbContext<AppDbContext>((sp, o) =>
    o.UseSqlServer(connectionString)
     .UseOrionAudit(sp));

In your DbContext:

protected override void OnModelCreating(ModelBuilder modelBuilder)
{
    modelBuilder.ApplyOrionAuditConfigurations();
}

Read audit history

var rows = await context.AuditFor<Order>()
    .OrderByDescending(a => a.OccurredOnUtc)
    .ToListAsync();

Time-travel reconstruction

var reconstructor = serviceProvider.GetRequiredService<IAuditReconstructor>();
var orderAsOfYesterday = await reconstructor.ReconstructAsync<Order>(
    order.Id.ToString(),
    DateTime.UtcNow.AddDays(-1));

Companion packages

  • OrionAudit.AspNetCoreHttpContextAuditUserResolver for ASP.NET Core apps
  • OrionAudit.TestingAuditCapture + fluent assertions for tests

See the project repository for the full design spec, sample app, and benchmarks.

Product 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 is compatible.  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 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 (4)

Showing the top 4 NuGet packages that depend on OrionAudit:

Package Downloads
OrionAudit.Testing

Testing helpers for OrionAudit. Provides AuditCapture, fluent assertions, and InMemory resolvers. Framework-agnostic - no xUnit/NUnit/FluentAssertions dependency.

OrionAudit.AspNetCore

ASP.NET Core integration for OrionAudit. Provides HttpContextAuditUserResolver and DI helpers.

OrionAudit.Viewer

Embeddable, framework-agnostic audit-trail viewer for OrionAudit. One endpoint registration (MapOrionAuditViewer) serves a JSON API and a built-in static UI. No Blazor dependency.

OrionAudit.MySql

MySQL / MariaDB provider integration for OrionAudit. Adds a ModelBuilder extension that applies the OrionAudit entity configurations with MySQL-aware column types (JSON or LONGTEXT for the diff/snapshot payloads).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.11.3 194 7/28/2026
0.11.1 191 6/30/2026
0.11.0 386 6/28/2026
0.10.0 191 6/27/2026
0.9.0 190 6/22/2026
0.8.1 228 6/20/2026
0.8.0 197 6/19/2026
0.7.32 207 6/17/2026
0.7.31 194 6/16/2026
0.7.30 227 6/16/2026
0.7.29 200 6/15/2026
0.7.28 191 6/15/2026
0.7.27 190 6/15/2026
0.7.26 201 6/13/2026
0.7.25 195 6/13/2026
0.7.24 195 6/12/2026
0.7.23 202 6/12/2026
0.7.22 202 6/11/2026
0.7.21 212 6/11/2026
0.7.20 191 6/11/2026
Loading failed