How to do Multiple ThenInclude navigation props after One Include
<p>For a TestType I wanted to include both navigation props Schoolclass and Subject.</p>

<p>I could do a:</p>

<pre><code>.Include(t =&gt; t.TestType)
 .ThenInclude(x =&gt; x.Subject)
</code></pre>

<p>but not a:</p>

<pre><code>.Include(t =&gt; t.TestType)
.ThenInclude(x =&gt; x.Subject)
.ThenInclude(x =&gt; x.Schoolclass)
</code></pre>

<p>Thus I tried a little trick and that worked:</p>

<p>I included the TestType 2 times...</p>

<pre><code>var test = await context.Tests.Where(t =&gt; t.SchoolyearId == schoolyearId)
                                          .Include(t =&gt; t.TestType)
                                          .ThenInclude(x =&gt; x.Subject)
                                           .Include(t =&gt; t.TestType)
                                          .ThenInclude(x =&gt; x.Schoolclass)
                                           .AsNoTracking()
                                          .ToListAsync();
</code></pre>

<p>Is that the official approach or is there a better one?</p>

<p><strong>UPDATE</strong></p>

<pre><code>   public class TestType
    {
        public TestType()
        {
            Tests = new HashSet&lt;Test&gt;();
        }

        public int Id { get; set; }
        public string Name { get; set; }
        public int Weight { get; set; }
        public ISet&lt;Test&gt; Tests { get; set; }
        public Schoolyear Schoolyear { get; set; }  
        public Schoolclass Schoolclass { get; set; }   
        public Subject Subject { get; set; }
        public int SchoolyearId { get; set; }
    }
</code></pre>