title: How to fix the error with a complex query EF Core
body: <p>I am writing a request</p>
  
  <pre><code>
      var dish = _context.DishDbSet.Include(t =&gt; t.DishIngredient).
      ThenInclude(t=&gt;t.Ingredient).
      ThenInclude(u=&gt;u.BeneficialPropertiesIngredient).
      ToList();
  
  </code></pre>
  
  <p>In the answer I get incomplete data.
  People tell me I have been sitting for 8 days in a row trying to figure it out, I myself am not working.
  How can I get all the fields of the wired tables with values.</p>
  
  <blockquote>
    <p>here's the answer</p>
  </blockquote>
  
  <pre><code> [{"id":1,
          "name":"Chicken with rice",
              "weight":10.4,
          "price":140.99,
          "image":"C:source",
          "dishIngredient":[{"ingredientId":1,
                      "ingredient":{"id":1,
                          "name":"Bow",
                          "protein":0.02,
                          "fat":0.52,
                          "carbohydrate":2.0,",
                          "dishIngredient":[
  
  
  
  public class Ingredient
      {
          [Key]
          public long Id { get; set; }
          public string Name { get; set; }
          public decimal Protein { get; set; }
          public decimal Fat { get; set; }
          public decimal Carbohydrate { get; set; }
          public decimal Calories { get; set; }
  
          public ICollection&lt;DishIngredient&gt; DishIngredient { get; set; }
          public ICollection&lt;BeneficialPropertiesIngredient&gt; BeneficialPropertiesIngredient { get; set; }
  
      }
  
  
   public class Dish 
      {
          [Key]
          public long Id { get; set; }
          public string Name { get; set; }
          public decimal Weight { get; set; }
          public decimal Price { get; set; }
          public string Image { get; set; }
  
          public ICollection&lt;DishIngredient&gt; DishIngredient { get; set; }
          public Measurement Measurement { get; set; } 
      }
  
  
  
   public class DishIngredient 
      {
  
          public long IngredientId { get; set; }
          public Ingredient Ingredient { get; set; }
  
          public long DishId { get; set; }
          public Dish Dish { get; set; }
      }
  </code></pre>
  
  <p>Perhaps your experience will tell me what I can do to get all the data from nested tables.</p>