Class RedbUniqueKeyDefinitionException

Assembly: redb.Core.dll

Thrown by scheme synchronisation when [RedbUnique] sits where it cannot be enforced: on a
property inside an array, a dictionary or a nested class, on a reference, a list item, an enum, a
collection, or on a type with no canonical form. Rejected at synchronisation, not at insert —
otherwise the behaviour would degrade into an index that silently never fires.

Also thrown by GetByUniqueAsync when asked for a property that is not a unique key.

public class RedbUniqueKeyDefinitionException : Exception, ISerializable

Inheritance

Object→Exception→RedbUniqueKeyDefinitionException

Implements

Properties

PropertyName

The offending property.

public string PropertyName { get; }

Reason

Why it cannot be a unique key.

public string Reason { get; }

SchemeName

CLR type or scheme the property belongs to.

public string SchemeName { get; }

Constructors