Property ThrowOnSchemeMismatch

Assembly: redb.Core.dll

Controls what LoadAsync<TProps> does when the loaded object belongs to a different
scheme than TProps maps to. The check itself always runs (garbage never reaches the
cache); this flag only chooses the reaction:
false (default) — return null. A soft-deleted object (scheme -10)
therefore reads as null, which is what callers that soft-delete expect.true — throw RedbSchemeMismatchException, to surface a genuine type mistake
loudly.
The untyped LoadAsync(objectId) is never affected.

public bool ThrowOnSchemeMismatch { get; set; }