How to combine Find() and AsNoTracking()?
<p>How to combine <code>Find()</code> with <code>AsNoTracking()</code> when making queries to an EF context to prevent the returned object from being tracked. This is what I can't do</p>

<pre><code> _context.Set&lt;Entity&gt;().AsNoTracking().Find(id);
</code></pre>

<p>How can I do that? I am using EF version 6.</p>

<p>Note: I do not want to use <code>SingleOrDefault()</code>, or <code>Where</code>. I just can't because the parameter <code>Id</code> is generic and it's a <code>struct</code> and I can not apply operator <code>==</code> for generics in that case.</p>