title: Difference between && and where condition in entity framework query
body: <h2>Difference between and condition and two where condition in entity framework query</h2>
  
  <p><strong>Code 1</strong> </p>
  
  <p>I have using two where condition in my query</p>
  
  <pre><code> dbContext.Projects.Where(p=&gt;p.ProjectId!=ProjectId).Where(p=&gt;p.Name==Name)
   .SingleOrDefault();
  </code></pre>
  
  <hr>
  
  <p><strong>code 2</strong></p>
  
  <p>I have using &amp;&amp; condition without using two where condition </p>
  
  <pre><code>  dbContext.Projects.Where(p=&gt;p.ProjectId!=ProjectId &amp;&amp;  
    p.Name==Name).SingleOrDefault();
  </code></pre>
  
  <hr>
  
  <ul>
  <li>What is the difference between <strong>code1</strong> and <strong>code2</strong>????</li>
  </ul>
  
  <blockquote>
    <p>The both queries are return same value. but i don't know the differences. Please explain to me, which one is better. and why?</p>
  </blockquote>