Simply use to obtain the posts with comments (and the user of each remark) and post users.
var res = this._dbContext.Posts .Include(p => p.User) .Include(p => p.Comments) .ThenInclude(c => c.User) .ToList();
If you choose not to add a third-party library such
you can build a
both use and function.
p => convertPostToDto(p) res.Select to change the
as a consequence