Implementing recursive property loading in EF Core
I do not have a database so I just did it in memory but if you follow my comments, it will work for you. Notice the objects I have in memory, only comment with id 2 has replies. LoadComment method is where everything happens. The rest is just setup code I needed. class Program { … Read more