How to find grandchild using parent Id using linq c#?

Viewed 20

Assume my structure of data would be like the below,

enter image description here

If I give ExtensionId = 2, should traverse through Id(parent) like 2 -> 3 -> 4 until the ExtensionId becomes null?

Need the above requirement in linq not stored procedure.

0 Answers
Related