Walking a hierarchy table with Linq

后端 未结 3 1723
离开以前
离开以前 2021-01-14 06:10

I have a table with two columns, GroupId and ParentId (both are GUIDS). The table forms a hierarchy so I can look for a value in the “GroupId” filed, when I have found it I

3条回答
  •  [愿得一人]
    2021-01-14 06:32

    It's definitely possible with Linq, but you'd have to make a DB call for each level in the heirarchy. Not exactly optimal.

提交回复
热议问题