Class RedbUnloadedReferenceException

Assembly: redb.Core.dll

Thrown when a reference whose properties were never loaded is saved directly: the object has an id and no loaded
properties - a hand-written new RedbObject<T> { id = x }, a stub whose lazy load the getter did not
keep (a shared instance inside a transaction). It names another object; it is not that object. Saving it saved
whatever a fresh load returned, and the caller's edits were lost silently (review after 4.0.0). Reading the
Props of such a reference still answers null: plain System.Text.Json serialization of a graph reads the
getter, and an exception there would fail every API response carrying a hand-made reference.

public class RedbUnloadedReferenceException : InvalidOperationException, ISerializable

Inheritance

Object→Exception→SystemException→InvalidOperationException→RedbUnloadedReferenceException

Implements

Properties

ObjectId

Id of the referenced object.

public long ObjectId { get; }

SchemeId

Scheme of that object; 0 when the reference does not carry it.

public long SchemeId { get; }

Constructors