EntglDb.Persistence 1.0.2

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

EntglDb.Persistence

Base persistence abstractions and implementations for EntglDb - provides foundational storage components used by all persistence providers.

What's Included

This package provides core persistence services that other providers extend:

  • OplogStore: Base implementation for append-only operation log storage
  • VectorClockService: Thread-safe in-memory vector clock management
  • DocumentMetadataStore: Document versioning and metadata tracking
  • SnapshotStore: Snapshot creation and restoration logic
  • PeerConfigurationStore: Peer node configuration persistence

Architecture Role

EntglDb.Persistence sits between the core abstractions (EntglDb.Core) and concrete implementations:

EntglDb.Core (interfaces)
       |
       v
EntglDb.Persistence (base implementations)
       |
       v
    +------------------+------------------------+
    |                  |                        |
  BLite         EntityFramework          (Other Providers)

When To Use This Package

  • As a Library User: You typically don't install this directly - it's included as a dependency when you install a concrete provider like EntglDb.Persistence.BLite or EntglDb.Persistence.EntityFramework
  • As a Provider Developer: Reference this package to build custom persistence providers by extending the base classes

Key Components

OplogStore

Base implementation for operation log storage with:

  • Hash-chain verification
  • Batch application
  • Conflict resolution integration
  • Change event notifications

VectorClockService

Thread-safe vector clock management:

  • In-memory caching for fast lookups
  • Atomic updates
  • Causal ordering tracking

SnapshotStore

Snapshot lifecycle management:

  • Creation and compression
  • Restoration logic
  • Metadata tracking

Creating a Custom Provider

To build your own persistence provider:

public class MyCustomOplogStore : OplogStore
{
    public MyCustomOplogStore(
        IDocumentStore documentStore,
        IConflictResolver conflictResolver,
        ISnapshotMetadataStore? snapshotMetadataStore,
        IVectorClockService vectorClock)
        : base(documentStore, conflictResolver, snapshotMetadataStore, vectorClock)
    {
    }

    protected override async Task<List<OplogEntry>> GetNodeEntriesAsync(
        string nodeId, CancellationToken cancellationToken)
    {
        // Implement storage-specific logic
    }

    // Implement other abstract methods...
}
  • EntglDb.Core - Core abstractions and interfaces
  • EntglDb.Persistence.BLite - BLite embedded provider
  • EntglDb.Persistence.EntityFramework - EF Core provider
  • EntglDb.Network - P2P networking layer

Documentation

Installation

# Install a concrete provider (includes this package automatically)
dotnet add package EntglDb.Persistence.BLite
# or
dotnet add package EntglDb.Persistence.EntityFramework

License

MIT - see LICENSE

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  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 was computed.  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 was computed.  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. 
.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.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on EntglDb.Persistence:

Package Downloads
EntglDb.Persistence.EntityFramework

Entity Framework Core persistence provider for EntglDb. Generic implementation supporting any EF Core database provider (SQL Server, PostgreSQL, MySQL, SQLite, etc).

EntglDb.Persistence.BLite

BLite persistence provider for EntglDb. High-performance embedded document database for .NET 10.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 0 2/19/2026
1.0.1 0 2/18/2026
1.0.0 27 2/18/2026