Interface ITreeRedbObject
Interface for REDB tree objects with navigational properties
Extends IRedbObject adding tree navigation capabilities in memory
Supports polymorphic trees (objects of different schemes in one tree)
public interface ITreeRedbObject : IRedbObject
Properties
Ancestors
Gets all node ancestors (from parent to root)
IEnumerable<ITreeRedbObject> Ancestors { get; }
Children
Collection of child objects (filled when loading tree)
ICollection<ITreeRedbObject> Children { get; set; }
Methods
GetBreadcrumbs(string, bool)
Gets breadcrumbs for navigation
string GetBreadcrumbs(string separator = " > ", bool includeIds = false)
GetSubtree()
Gets all subtree nodes (including current) in depth-first order
IEnumerable<ITreeRedbObject> GetSubtree()
IsAncestorOf(ITreeRedbObject)
Checks if current node is ancestor of specified node
bool IsAncestorOf(ITreeRedbObject descendant)
IsDescendantOf(ITreeRedbObject)
Checks if current node is descendant of specified node
bool IsDescendantOf(ITreeRedbObject ancestor)