Linger.Audit 0.2.0-alpha

This is a prerelease version of Linger.Audit.
dotnet add package Linger.Audit --version 0.2.0-alpha                
NuGet\Install-Package Linger.Audit -Version 0.2.0-alpha                
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="Linger.Audit" Version="0.2.0-alpha" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Linger.Audit --version 0.2.0-alpha                
#r "nuget: Linger.Audit, 0.2.0-alpha"                
#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.
// Install Linger.Audit as a Cake Addin
#addin nuget:?package=Linger.Audit&version=0.2.0-alpha&prerelease

// Install Linger.Audit as a Cake Tool
#tool nuget:?package=Linger.Audit&version=0.2.0-alpha&prerelease                

Linger.Audit

A lightweight .NET auditing library that provides base classes and interfaces for entity auditing.

✨ Features

  • Multi-target framework support (.NET 9.0/.NET 8.0/.NET 6.0/NetStandard 2.0)
  • Full audit trail tracking (creation, modification, deletion)
  • Generic entity support with type-safe IDs
  • Soft delete capability
  • Built-in audit timestamps and user tracking
  • Nullable reference types enabled
  • MIT licensed

📦 Installation

From Visual Studio

  1. Open the Solution Explorer.
  2. Right-click on a project within your solution.
  3. Click on Manage NuGet Packages....
  4. Click on the Browse tab and search for "Linger.Audit".
  5. Click on the Linger.Audit package, select the appropriate version and click Install.

Package Manager Console

PM> Install-Package Linger.Audit

.NET CLI Console

> dotnet add package Linger.Audit

🚀 Quick Start

// 1. Implement audit user provider 
public class CurrentUserProvider : IAuditUserProvider 
{ 
    public string? UserName => "current-user"; 
    public string GetUser() => UserName ?? "anonymous"; 
}

// 2. Create auditable entity 
public class Product : FullAuditEntity 
{ 
    public string Name { get; set; } = default!; 
    public decimal Price { get; set; }
}

// The entity will track: 
// - Creation time and creator 
// - Last modification time and modifier
// - Deletion time and deleter 
// - Soft delete status

🏗️ Architecture

  • IAuditUserProvider - Interface for getting current user
  • FullAuditEntity<T> - Base class for entities with full audit trail
  • AuditableEntity - Base class with creation/modification audit
  • ISoftDelete - Interface for soft delete support

📝 License

This project is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Linger.Audit:

Package Downloads
Linger.Audit.EFCore

C# Helper Library

Linger.Repository.Contracts

C# Helper Library

Linger.EFCore.Audit

C# Helper Library

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.2.0-alpha 39 2/9/2025
0.1.2-alpha 52 12/17/2024
0.1.1-alpha 43 12/17/2024
0.1.0-alpha 50 12/6/2024
0.0.3-alpha 61 11/27/2024
0.0.2-alpha 54 10/3/2024
0.0.1-alpha 75 9/28/2024