DropBear.Codex.TemporalHistory 2024.5.5

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package DropBear.Codex.TemporalHistory --version 2024.5.5
NuGet\Install-Package DropBear.Codex.TemporalHistory -Version 2024.5.5
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="DropBear.Codex.TemporalHistory" Version="2024.5.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DropBear.Codex.TemporalHistory --version 2024.5.5
#r "nuget: DropBear.Codex.TemporalHistory, 2024.5.5"
#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 DropBear.Codex.TemporalHistory as a Cake Addin
#addin nuget:?package=DropBear.Codex.TemporalHistory&version=2024.5.5

// Install DropBear.Codex.TemporalHistory as a Cake Tool
#tool nuget:?package=DropBear.Codex.TemporalHistory&version=2024.5.5

DropBear.Codex.TemporalHistory

A library for managing and querying temporal history of entities using Entity Framework Core.

Features

  • Temporal Queries: Retrieve historical changes of your entities within a given time range.
  • Snapshot Retrieval: Fetch the state of an entity at a specific point in time.
  • User-specific Changes: Filter changes by user to track individual contributions.
  • Latest Changes: Quickly get the most recent changes to entities.
  • Compare Changes: Compare the state of an entity between two timestamps and get detailed property changes.

Getting Started

Prerequisites

  • .NET Core 8 or higher
  • Entity Framework Core 8 or higher

Installation

To install DropBear.Codex.TemporalHistory, add the library to your project via NuGet:

dotnet add package DropBear.Codex.TemporalHistory

Configuration

Add the library to your project using one of the following methods:

Using Dependency Injection
public void ConfigureServices(IServiceCollection services)
{
    services.AddTemporalHistory();
}
Using the Builder Pattern
var dbContext = new MyDbContext(options);
var manager = new TemporalManagerBuilder<MyDbContext>()
    .UseDbContext(dbContext)
    .Build();

Usage

// Retrieve entity history between two dates
var historyRecords = await temporalHistoryManager.GetHistoryAsync<MyEntity>(startDate, endDate);

// Get a snapshot of an entity at a specific point in time
var snapshot = await temporalHistoryManager.GetEntitySnapshotAt<MyEntity>(dateTime, id);

Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues to discuss proposed changes or enhancements.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Authors

See also the list of contributors who participated in this project.

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated