Skip to main content

RtPathNullHandling

Namespace: Meshmakers.Octo.Runtime.Contracts

Defines what RtPathEvaluator.SetValue(ICkCacheService, String, RtTypeWithAttributes, IEnumerable<PathTerm>, Object, RtPathNullHandling) does with a null value whose path runs through a record that does not exist yet (for example Amount.Value while Amount is not set).

public enum RtPathNullHandling

Inheritance Object → ValueType → Enum → RtPathNullHandling
Implements IComparable, ISpanFormattable, IFormattable, IConvertible

Fields​

NameValueDescription
KeepMissingRecords0The null is dropped: the missing record is not created and the attribute stays missing. This is the behaviour of the overloads without this parameter (query-row creates and updates must not create empty records for empty cells).
CreateMissingRecords1The null is an explicit value: missing records along the path are created (the same way a non-null value creates them) and the addressed member is set to an explicit null. Used where an explicit null has to stay apart from a missing value, for example pipeline updates that write to an archive, where only an explicit null clears a column.