Class RedbScheme
REDB scheme entity with direct data storage.
Maps to _schemes table in PostgreSQL.
Contains collection of structures (fields).
public class RedbScheme : IRedbScheme
Inheritance
Implements
Properties
IdParent
Parent scheme identifier (for scheme hierarchy).
[JsonPropertyName("id_parent")]
public long? IdParent { get; set; }
NameSpace
Namespace for C# class generation.
[JsonPropertyName("name_space")]
public string? NameSpace { get; set; }
StructureHash
MD5 hash of all structures (aggregated).
[JsonPropertyName("structure_hash")]
public Guid? StructureHash { get; set; }
Structures
Collection of structures (fields) for this scheme.
[JsonPropertyName("structures")]
public IReadOnlyCollection<IRedbStructure> Structures { get; }
Type
Scheme type ID (Class, Array, Dictionary, JsonDocument, XDocument).
[JsonPropertyName("type")]
public long Type { get; set; }
Methods
GetStructureByName(string)
Fast lookup of structure by name.
public IRedbStructure? GetStructureByName(string name)
SetStructures(IEnumerable<RedbStructure>)
Set structures collection (for mapping).
public void SetStructures(IEnumerable<RedbStructure> structures)
Constructors
RedbScheme()
Default constructor for deserialization and mapping.
RedbScheme(string)
Constructor with name.