title: Checking for null value in c# var with LINQ & Entity framework
body: <p>I'm quite new to LINQ &amp; Entity framework as well as the var keyword in c# so please pardon me if this sounds like a 'newbie' question. </p>
  
  <p>I have problems checking for null values after doing something like this: </p>
  
  <pre><code>var entry = myDB.Entries.Where(e =&gt; e.Email == entry.Email);
  </code></pre>
  
  <p>Even when the email does not exist in the database, entry does not equate to null. </p>
  
  <p>So instead of <code>if (entry == null)</code> i had to do <code>if (entry.Count() &lt; 1)</code> to check for existing Entry before i execute my next batch of statements. Is there any reason why the variable wouldn't be considered null?</p>