title: Multi-Level Includes in CodeFirst - EntityFrameWork
body: <p>It is working code;</p>
  
  <pre><code>IQueryable&lt;Product&gt; productQuery = ctx.Set&lt;Product&gt;().Where(p =&gt; p.Id == id).(Include"Contexts.AdditionalProperties.Field");
  </code></pre>
  
  <p>But you know that it could not produce compile time error if we made mistake in string statement in "Contexts.AdditionalProperties.Field"</p>
  
  <p>I would like to write code below;</p>
  
  <pre><code>IQueryable&lt;Product&gt; productQuery = ctx.Set&lt;Product&gt;().Where(p =&gt; p.Id == id).Include(p =&gt; p.Contexts);
  </code></pre>
  
  <p>But above statement could not give chance to define AdditionalProperties and Field.</p>
  
  <p>What should we do?</p>
  
  <p>I would like to write as  more than one include for build query.</p>
  
  <p>Thanks.</p>