Trackable.Fody 1.0.1

dotnet add package Trackable.Fody --version 1.0.1
                    
NuGet\Install-Package Trackable.Fody -Version 1.0.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="Trackable.Fody" Version="1.0.1">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Trackable.Fody" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Trackable.Fody">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
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 Trackable.Fody --version 1.0.1
                    
#r "nuget: Trackable.Fody, 1.0.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 Trackable.Fody@1.0.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=Trackable.Fody&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Trackable.Fody&version=1.0.1
                    
Install as a Cake Tool

Trackable.Fody

Fody weaver that injects change tracking calls for properties marked with [TrackedProperty] on types implementing TrackedEntity.

Install

dotnet add package Trackable.Fody

This will also install Fody and the Trackable runtime. A transitive MSBuild prop auto-adds the weaver so no FodyWeavers.xml is required.

Usage

  • Implement TrackedEntity on your model and expose an Id.
  • Mark properties to track with [TrackedProperty].
  • Mutations inside a Scope are tracked automatically.
public class User : TrackedEntity
{
    [TrackedProperty]
    public string Id { get; set; }

    [TrackedProperty]
    public string Name { get; set; }
}

await using var scope = Scope.Open();
var user = new User { Id = "1" };
user.Name = "Alice"; // recorded as dirty within the scope

If you prefer the classic setup, you can add a FodyWeavers.xml with:

<Weavers>
  <Trackable />
</Weavers>
There are no supported framework assets in this 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
1.0.1 98 9/25/2025
1.0.0 99 9/25/2025