Class RedbPropsClassOlderException

Assembly: redb.Core.dll

A save refused because the Props class of this process is older than the scheme in the database: the stored
objects have values of fields a newer build of the class added under a nested class, an array or a dictionary
this class knows. Saving would replace that nested class or collection and delete those values. Nothing was
written.

A field a newer build added at the top level of the class is kept by the save and needs no refusal. The way out is
upgrading this process, or not saving these objects from it while old and new builds run side by side.

public class RedbPropsClassOlderException : Exception, ISerializable

Inheritance

Object→Exception→RedbPropsClassOlderException

Implements

Properties

ClassVersion

The version of the class this process saved with ().

public int ClassVersion { get; }

PropsType

The CLR type of the Props class this process saved with.

public Type PropsType { get; }

SchemeName

The scheme of the objects.

public string SchemeName { get; }

StoredVersion

The version of the class the scheme was last synchronised with, as the database records it.

public int StoredVersion { get; }

UnknownFields

The fields the database has and the class lacks, as paths (HomeAddress.Country).

public IReadOnlyList<string> UnknownFields { get; }

Constructors

RedbPropsClassOlderException(string, Type, int, int)

The scheme was synchronised by a newer version of the class (),