Skip to main content

HierarchyReportItem

Definition

Namespace: Surya.Ab.Export.Client.Models
Assembly: Surya.Ab.Export.dll

Provides the data structure for Hierarchy Report format.

public class HierarchyReportItem<TDynamic>

Properties

NameDefinition
IdRepresents the Id of a HierarchyReportItem.
NameRepresents the first column field description.
ParentIdRepresents the Id of the parent HierarchyReportItem.
DepthRepresents the depth or level of the HierarchyReportItem.
TypeRepresents the type of the HierarchyReportItem, indicated by the ReportItemType enum.
DynamicFieldValuesRepresents dynamic field values associated with the HierarchyReportItem, of type TDynamic.

Structure

public class HierarchyReportItem<TKey, TData>
{
public TKey Id { get; set; }
public string? Name { get; set; }
public TKey ParentId { get; set; }
public int Depth { get; set; }
public ReportItemType Type { get; set; }
public TData? DynamicFieldValues { get; set; }
}

ReportItemType

An enum defining two types of ReportItem: NDI and DI

Structure
public enum ReportItemType
{
NDI,
DI
}

Edit on GitHub