Class EntityCalculationResult
The outcome of recalculating one entity type.
public sealed class EntityCalculationResult
- Inheritance
-
EntityCalculationResult
- Inherited Members
Properties
ChangedAttributes
The number of entities whose recalculated value of each attribute differed from the stored value.
public IReadOnlyDictionary<string, int> ChangedAttributes { get; }
Property Value
Elapsed
Time from the start of the first batch to the end of the last in each pass over the type, including time its batches spent queued behind other types'.
public TimeSpan Elapsed { get; }
Property Value
FailedBatches
Batches which could not be loaded or saved, whose entities are unchanged.
public int FailedBatches { get; }
Property Value
Failures
Calculations and calculation hooks which threw, by attribute or hook and exception, with how many entities they failed for and the first of them.
public IReadOnlyDictionary<(string Attribute, string Exception), (int Count, Guid Example)> Failures { get; }
Property Value
LazyLoads
The number of entities which each attribute's calculations, or each calculation hook, loaded rather than their batches, for lack of [CalculationDependency] declarations.
public IReadOnlyDictionary<string, int> LazyLoads { get; }
Property Value
Passes
Passes over the type: more than one if it reads its own stored calculated values, directly or through other types.
public int Passes { get; }
Property Value
Processed
Entities recalculated in the latest pass, including any created since the recalculation began.
public int Processed { get; }
Property Value
Rows
Entities of the type when the recalculation began.
public int Rows { get; }
Property Value
Type
public IEntityInfo Type { get; }
Property Value
UndeclaredOutputs
Entities which the type's calculation hooks changed although no [CalculationResult] path reaches them, by type, with how many and the first of them; their changes were not saved.
public IReadOnlyDictionary<string, (int Count, Guid Example)> UndeclaredOutputs { get; }
Property Value
Updated
Entities saved because their recalculated values differed from those stored.
public int Updated { get; }
Property Value
Written
Other entities saved because the type's calculation hooks changed them through their [CalculationResult] paths, or changed their relationships with the type's entities.
public int Written { get; }