This question is locked. New answers and comments are not allowed.
Hi All,
Presently I am stuck in a linq query. It would be great if you can help on this.
Presently I am stuck in a linq query. It would be great if you can help on this.
My Sql table looks like this:
NameId
ParentNameId
Name
Now I have to write a query where user will give the Name as input and I have to return all the parents up to the root NameId.
[ex :
Ujjwal
Ram
Andy
Bob
Sam
Mathew
Now if user give the input as "Andy". I have to return the result from linq query which contain below information :
Ujjwal
Ram
Andy
Thanks in advance for your help.
Regards,
Ujjwal