How to call ThenInclude twice in EF Core?
Now, this works fine, but as you can see I’m calling .Include(u = u.Posts) twice. Is there a way to call ThenInclude twice on same property, without actually writing the Include statement also twice? Calling Include(u => u.Posts) twice is the right way to do it. From EF Core docs… emphasis on the last sentence. … Read more