OrionAudit 0.11.3
dotnet add package OrionAudit --version 0.11.3
NuGet\Install-Package OrionAudit -Version 0.11.3
<PackageReference Include="OrionAudit" Version="0.11.3" />
<PackageVersion Include="OrionAudit" Version="0.11.3" />
<PackageReference Include="OrionAudit" />
paket add OrionAudit --version 0.11.3
#r "nuget: OrionAudit, 0.11.3"
#:package OrionAudit@0.11.3
#addin nuget:?package=OrionAudit&version=0.11.3
#tool nuget:?package=OrionAudit&version=0.11.3
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.AspNetCore —
HttpContextAuditUserResolverfor ASP.NET Core apps - OrionAudit.Testing —
AuditCapture+ fluent assertions for tests
See the project repository for the full design spec, sample app, and benchmarks.
| 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 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. |
-
net10.0
- Microsoft.EntityFrameworkCore (>= 9.0.0)
- Microsoft.EntityFrameworkCore.Relational (>= 9.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
- Orion.Abstractions (>= 1.0.0)
-
net8.0
- Microsoft.EntityFrameworkCore (>= 9.0.0)
- Microsoft.EntityFrameworkCore.Relational (>= 9.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
- Orion.Abstractions (>= 1.0.0)
-
net9.0
- Microsoft.EntityFrameworkCore (>= 9.0.0)
- Microsoft.EntityFrameworkCore.Relational (>= 9.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
- Orion.Abstractions (>= 1.0.0)
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 |