Persistord.History 1.0.0-beta2

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

Persistord.History

<div align="center">

NuGet Downloads

← Persistord docs · Documentation site

</div>

Append-only message-history module for Persistord. Depends on Persistord.Messages (and therefore Persistord.Core).

Adds MessageHistoryEntity and an ApplyHistoryModule() model extension:

protected override void OnModelCreating(ModelBuilder modelBuilder)
{
    base.OnModelCreating(modelBuilder);
    modelBuilder.ApplyMessagesModule();   // required: history has a real FK to messages
    modelBuilder.ApplyHistoryModule();
}

What it records

Every change to a message is appended as a new row — a full content snapshot per change, not a diff — tagged with a HistoryChangeType (Created, Edited, Deleted) and a RecordedAt timestamp. Rows are indexed on (MessageId, RecordedAt) for chronological lookups.

Relationship to messages

MessageHistoryEntity holds a real foreign key to MessageEntity with DeleteBehavior.Restrict. Because messages are soft-deleted (see Persistord.Messages), the parent row is never physically removed, so history rows — including the row that logs the deletion — always keep a valid reference.

This means History requires the Messages table to be persisted; it is not a standalone audit log.

License

MIT

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 (2)

Showing the top 2 NuGet packages that depend on Persistord.History:

Package Downloads
Persistord

Meta package that bundles the library-neutral Persistord stack — Core, Messages, and History — in a single reference.

Persistord.Adapters.DiscordNet

Discord.Net adapter for Persistord: extension methods mapping Discord.Net interface types to Persistord entities.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-beta2 63 7/20/2026
1.0.0-beta.1 70 6/14/2026