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
PropertyNamestringName of the changed property on the aggregate.
SourceValueobjectThe value the caller started from (i.e. what was on screen).
CurrentValueobjectThe current value on the aggregate (potentially mutated by a concurrent write).
ChangeValueobjectThe new value the caller wants to set.
Properties
ChangeValue
The new value the caller wants to set.
public object? ChangeValue { get; init; }
Property Value
CurrentValue
The current value on the aggregate (potentially mutated by a concurrent write).
public object? CurrentValue { get; init; }
Property Value
PropertyName
Name of the changed property on the aggregate.
public string PropertyName { get; init; }
Property Value
SourceValue
The value the caller started from (i.e. what was on screen).
public object? SourceValue { get; init; }