I have a similar requirement as this question at: What is the most efficient/elegant way to parse a flat table into a tree?
In my case, the table can contain potentially a millions of row, the depth of the node structure to the root may be around 5 to 6, but the breadth of the nodes could be huge,
I am using entity framework C#, is there a fast and efficient algorithm by which we can figure out the structure via entity?