AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

IModelWithHierarchy<(Of <(<'T>)>)> Interface

Contract for models that participate in a tree structure and can be bound to hierarchical data-bound controls via HierarchicalModelDataSource<(Of <(<'T>)>)>.

Implementors must expose their underlying data object via Item, a reference to their parent node via Parent, and a list of child nodes via Children. The [HierarchyConverter.ToHierarchicalModelList{T}] extension method wraps implementors in HierarchyData<(Of <(<'T>)>)> adapters for data binding.

Namespace:  AdvantageCSP.HierarchicalModelDataSource
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public interface IModelWithHierarchy<T>

Type Parameters

T
The concrete type implementing this interface (self-referencing generic pattern), so that Parent and Children are strongly typed to the same model (e.g., class NavNode : IModelWithHierarchy<NavNode>).