Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have millions data in database.how can I get each parent tree member list. like that:


But here is one problem I'm getting: only 5 users list
    I want to all list which is I'm or my child adding
    members or every tree member adding new member.


What I have tried:

<pre>private DbContext db=new DbContext();

public List<user> GetUserListByParentId(int id)
{
    var data = db.users.where(x => x.parentid == id).ToList();
    
} 
Posted
Updated 9-Apr-20 20:38pm

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900