Allors.Tram 0.1.1

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

Allors TRAM

CI NuGet License: LGPL-3.0

Transactional memory for .NET with atomic derivations.

Status: 0.1.x — early release. The public API may change between minor versions. Semantic Versioning guarantees apply from 1.0 onward.

Features

  • Handle-based identity - lightweight uint references instead of CLR object references
  • Triple-buffered state - Primary (working) / Secondary (checkpoint) / Tertiary (committed)
  • Atomic derivation - Derive() runs forward-chaining derivations and persists on success; on failure the transaction is fully rolled back to the last committed state
  • Bidirectional relationships - OneToOne, OneToMany, ManyToOne, ManyToMany with automatic inverse tracking
  • Change tracking - fine-grained change sets for created/deleted objects and changed roles
  • Forward-chaining derivations - reactive computations driven by change sets
  • Configuration-driven schema - define your domain with a fluent builder

Install

dotnet add package Allors.Tram

Quick Example

using Allors.Tram;
using Allors.Tram.Schema;
using Allors.Tram.Schema.Config;

var config = new TramSchemaConfigBuilder()
    .AddValueType("String")
    .AddClass("Person")
    .AddAttribute("Person", "String", "FirstName")
    .Build();

var schema = new TramSchema(config);
var tram = new Tram(schema);

var person = (TramClass)schema.TypeByName["Person"];
var firstName = (TramAttribute)person.PropertyBySingularOrPluralName["FirstName"];

var jane = tram.Create(person);
tram.Set(jane, firstName, "Jane");

tram.Derive();

See Getting Started for the full walkthrough — relationships, change tracking, transactions, and derivations.

Documentation

Contributing

Contributions are welcome. Please read CONTRIBUTING.md and the Code of Conduct.

License

LGPL-3.0-only © Allors bv

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.
  • net10.0

    • No dependencies.

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
0.1.1 128 5/28/2026
0.1.0 109 5/26/2026