Persistord.History
1.0.0-beta2
dotnet add package Persistord.History --version 1.0.0-beta2
NuGet\Install-Package Persistord.History -Version 1.0.0-beta2
<PackageReference Include="Persistord.History" Version="1.0.0-beta2" />
<PackageVersion Include="Persistord.History" Version="1.0.0-beta2" />
<PackageReference Include="Persistord.History" />
paket add Persistord.History --version 1.0.0-beta2
#r "nuget: Persistord.History, 1.0.0-beta2"
#:package Persistord.History@1.0.0-beta2
#addin nuget:?package=Persistord.History&version=1.0.0-beta2&prerelease
#tool nuget:?package=Persistord.History&version=1.0.0-beta2&prerelease
Persistord.History
<div align="center">
← 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 | Versions 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. |
-
net10.0
- Persistord.Messages (>= 1.0.0-beta2)
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 |