Class EntitySetStructure
A class responsible for taking an IEntitySetBase and loading its structure , allowing that to be traversed using nodes and links
This structure comes from the EntitySets entities (ISetEntity), their rules ( IAllocationRule) and paths (IAllocationPath)
Inherited Members
Namespace: LemonEdge.API.Core.FinancialServices.Helpers
Assembly: LemonEdge.API.Core.FinancialServices.dll
Syntax
public class EntitySetStructure
Constructors
EntitySetStructure(IEntitySetBase[], IAllocationPath[], bool, bool)
Creates a new entity structure for the given entity set, and an optional path to highlight
Declaration
public EntitySetStructure(IEntitySetBase[] sets, IAllocationPath[] highlightPaths, bool showChainedAllocations, bool showSingleInvestorVehicles)
Parameters
Type | Name | Description |
---|---|---|
IEntitySetBase[] | sets | |
IAllocationPath[] | highlightPaths | |
bool | showChainedAllocations | |
bool | showSingleInvestorVehicles |
Properties
Links
All the links between entities within the structure
Declaration
public IEnumerable<EntityStructureLink> Links { get; }
Property Value
Type | Description |
---|---|
IEnumerable<EntityStructureLink> |
Nodes
All the entities within the structure
Declaration
public IEnumerable<EntitySetStructureNode> Nodes { get; }
Property Value
Type | Description |
---|---|
IEnumerable<EntitySetStructureNode> |
Methods
InitClosingDate(DateTime?)
Declaration
public void InitClosingDate(DateTime? closingDate)
Parameters
Type | Name | Description |
---|---|---|
DateTime? | closingDate |
Load(IEntityRetriever, IReadOnlyCache)
Loads the entities in the entity set, and calculates the structure between the entities from allocation rules and paths
Declaration
public Task Load(IEntityRetriever retriever, IReadOnlyCache cache)
Parameters
Type | Name | Description |
---|---|---|
IEntityRetriever | retriever | The context to load the structure with |
IReadOnlyCache | cache |
Returns
Type | Description |
---|---|
Task | A task representing the completion of the operation |