Path: redb/redb.Core/Models/Contracts/IRedbScheme.cs
Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb
Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Core/Models/Contracts/IRedbScheme.cs
----
using System;
using System.Collections.Generic;
namespace redb.Core.Models.Contracts
{
///
/// REDB scheme interface
/// Represents scheme (type) of objects in system with structure encapsulation
///
public interface IRedbScheme
{
///
/// Unique scheme identifier
///
long Id { get; }
///
/// Parent scheme identifier (for scheme hierarchy)
///
long? IdParent { get; }
///
/// Scheme name
///
string Name { get; }
///
/// Scheme alias (short name)
///
string? Alias { get; }
///
/// Scheme namespace (for C# classes)
///
string? NameSpace { get; }
///
/// MD5 hash of all scheme structures (aggregated)
/// Used for automatic change detection and cache invalidation
///
Guid? StructureHash { get; }
///
/// Free-form marker for future / custom extensions (450 chars), written by [RedbTags]
/// at synchronisation. Default implementation returns null so third-party
/// implementations keep compiling - the same contract as .
///
string? Tags => null;
///
/// Collection of structures (fields) of this scheme
/// Scheme encapsulates its structures for data integrity
///
IReadOnlyCollection Structures { get; }
///
/// Fast access to structure by name
/// Avoids the need to search in collection
///
IRedbStructure? GetStructureByName(string name);
}
}