What entity is causing the exception in entity framework
<p>I'm doing something like that in my code</p>

<pre><code>var item = myContext.Entity1
             .Include(e =&gt; e.Entity2)
             ....
             .Include(e =&gt; e.Entity19)
             .FirstOrDefault(e =&gt; e.Id == 1)
</code></pre>

<p>Now i'm getting an <code>EntityCommandExecutionException</code> with the inner Exception error <code>Invalid column name 'Id'.</code> </p>

<p>I was wondering if there's a way to see what Entity has caused this Exception?
What I did so far, is to comment out/ comment in the Includes till i isolated the promematic one.</p>

<p>Is there an easier way?</p>