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" />
<PackageReference Include="Allors.Tram" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=Allors.Tram&version=0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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 from1.0onward.
Features
- Handle-based identity - lightweight
uintreferences 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
- Getting Started — tutorial walkthrough
- Architecture — design, layers, and feature reference
- Changelog
Contributing
Contributions are welcome. Please read CONTRIBUTING.md and the Code of Conduct.
License
LGPL-3.0-only © Allors bv
| 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. |
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.