title: Linq Include property in every item of the list
body: <p>I have these 4 classes.</p>
  
  <p>They are being used in hierarchy:</p>
  
  <pre><code>  class Reception {
        virtual List&lt;Pallets&gt; Pallets { get; set; }
        float Weight { get; set; }
    }
  
    class Pallet {
        virtual List&lt;PalletDetail&gt; PalletDetail { get; set; }
    }
  
    class PalletDetail {
        virtual Package Package { get; set; }
        int Quantity { get; set; }
    }
  
    class Package {
        float Weight { get; set; }
    }
  </code></pre>
  
  <p>For each reception I want to calculate the weight, so I have something like this:</p>
  
  <pre><code>foreach (var reception in dbContext.Receptions
      .Include(a =&gt; a.Pallets)
      .Include(a =&gt; a.Pallets.Select(b =&gt; b.PalletDetail))
      .ToList())
  {
      reception.Weight = reception.Pallets
                              .SelectMany(p =&gt; p.PalletDetail)
                              .Sum(r =&gt; r.Quantity * r.Package.Weight) ?? 0;
  }
  
  dbContext.SaveChanges();
  </code></pre>
  
  <p>The problem is that the object <code>Package</code> is not being included in the query, so the previous <code>foreach</code> is generating a SQL query in every iteration</p>
  
  <p>Question: How can I include it? (what's the syntax?)</p>