Skip to main content
Table of Contents

Class ChangeDetail

Namespace
Stratara.Abstractions.Merging.ChangeTracking
Assembly
Stratara.Abstractions.dll

One property's contribution to a change-set produced by IChangeSetHandler. Encodes the original snapshot value, the current aggregate value, and the new requested value — sufficient context for 3-way merge or conflict reporting.

[ExcludeFromCodeCoverage]
public sealed record ChangeDetail : IEquatable<ChangeDetail>
Inheritance
ChangeDetail
Implements
Inherited Members
Extension Methods

Constructors

ChangeDetail(string, object?, object?, object?)

One property's contribution to a change-set produced by IChangeSetHandler. Encodes the original snapshot value, the current aggregate value, and the new requested value — sufficient context for 3-way merge or conflict reporting.

public ChangeDetail(string PropertyName, object? SourceValue, object? CurrentValue, object? ChangeValue)

Parameters

PropertyName string

Name of the changed property on the aggregate.

SourceValue object

The value the caller started from (i.e. what was on screen).

CurrentValue object

The current value on the aggregate (potentially mutated by a concurrent write).

ChangeValue object

The new value the caller wants to set.

Properties

ChangeValue

The new value the caller wants to set.

public object? ChangeValue { get; init; }

Property Value

object

CurrentValue

The current value on the aggregate (potentially mutated by a concurrent write).

public object? CurrentValue { get; init; }

Property Value

object

PropertyName

Name of the changed property on the aggregate.

public string PropertyName { get; init; }

Property Value

string

SourceValue

The value the caller started from (i.e. what was on screen).

public object? SourceValue { get; init; }

Property Value

object