title: How to call ThenInclude twice in EF Core?
body: <p>I'm creating an ASP.NET Core API app, and relying on EF Core. I have entities defined like this:</p>
  
  <pre><code>public class AppUser : IdentityUser
  {
      public string FirstName { get; set; }
  
      public string LastName { get; set; }
  
      [InverseProperty(nameof(Post.Author))]
      public ICollection&lt;Post&gt; Posts { get; set; } = new List&lt;Post&gt;();
  }
  
  public class Post
  {
      [Key]
      [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
      public int Id { get; set; }
  
      public string AuthorId { get; set; }
  
      [ForeignKey("AuthorId")]
      public virtual AppUser Author { get; set; }
  
      [InverseProperty(nameof(Like.Post))]
      public ICollection&lt;Like&gt; Likes { get; set; } = new List&lt;Like&gt;();
  
      [InverseProperty(nameof(Comment.Post))]
      public ICollection&lt;Comment&gt; Comments { get; set; } = new List&lt;Comment&gt;();
  }
  </code></pre>
  
  <p>Where <code>Comment</code> and <code>Like</code> are some other entities. Please note that I have simplified the entities for brevity. Then, I want to get the <code>Posts</code> of a user, but also include the <code>Likes</code> and <code>Comments</code> that a post has gotten. So, I did something like this:</p>
  
  <pre><code>return _context.Users
                 .Include(u =&gt; u.Location)
                 .Include(u =&gt; u.Posts)
                      .ThenInclude(p =&gt; p.Comments)
                          .ThenInclude(c =&gt; c.Owner)
                 .Include(u =&gt; u.Posts)
                      .ThenInclude(p =&gt; p.Likes)
                          .ThenInclude(l =&gt; l.Giver)
                 .Where(u =&gt; u.Id == userId)
                 .FirstOrDefault();
  </code></pre>
  
  <p>Now, this works fine, but as you can see I'm calling <code>.Include(u = u.Posts)</code> twice. Is there a way to call <code>ThenInclude</code> twice on same property, without actually writing the <code>Include</code> statement also twice?</p>