title: Does the order of the include and the where matter in a LINQ query?
body: <p>I have the following:</p>
  
  <pre><code>var objectives = _objectivesRepository
                  .GetAll()
                  .Where(o =&gt; o.ExamId == examId || examId == 0)
                  .Include(o =&gt; o.ObjectiveDetails)
                  .ToList();
  </code></pre>
  
  <p>In a previous post one of the users said that it was important to put the where before the include in a LINQ query. </p>
  
  <p>Can someone let me know if this is correct? Does order matter? How about if there are many where and includes ?</p>