Class RedbSchemeNamespaceMismatchException

Assembly: redb.Core.dll

Thrown when a type resolves to a scheme (by explicit name, FullName, short-name fallback or as the
loser of a creation race) that is owned by a different namespace (_schemes._name_space). Adopting it would silently attach
one project's type to another project's data — two unrelated Order classes are the textbook
case. Schemes written before namespaces were recorded carry NULL there and are still adopted, with
a warning, because a pre-namespace database has no other way in (V4, К7).

public class RedbSchemeNamespaceMismatchException : Exception, ISerializable

Inheritance

Object→Exception→RedbSchemeNamespaceMismatchException

Implements

Properties

DeclaringType

The type that asked for the scheme.

public Type DeclaringType { get; }

SchemeId

Id of the scheme the type resolved to.

public long SchemeId { get; }

SchemeName

The scheme name the type resolved to.

public string SchemeName { get; }

SchemeNameSpace

The namespace recorded on the scheme — its owner.

public string SchemeNameSpace { get; }

TypeNameSpace

The namespace of the requesting type (null for the global namespace).

public string? TypeNameSpace { get; }

Constructors