title: LastOrDefault vs FirstOrDefault
body: <p>Could you explain why LastOrDefault doesn't works where FirstOrDefault do the job without any problem. It seems these 2 methods are not the same:</p>
  
  <p>Ont his example from LinqPad:</p>
  
  <pre><code> var varone = Guid.Parse("bbb3d139-fbec-430c-9574-02f3412c95df");
   Price.Where(y =&gt; y.Id == varone &amp;&amp; y.ApplicationDate.Value &lt;= new DateTime(2016,06,01))
                  .OrderByDescending(y =&gt; y.ApplicationDate.Value)
                  .LastOrDefault().Dump();
  </code></pre>
  
  <p>I get a </p>
  
  <blockquote>
    <p>NotSupportedException: LINQ to Entities does not recognize the method
    'Nppg.Core.BusinessModels.BeperEntities.Price
    LastOrDefaultPrice'
    method, and this method cannot be translated into a store expression.</p>
  </blockquote>
  
  <p>But no problem if I replace LastOrDefault by FirstOrDefault</p>
  
  <pre><code> var varone = Guid.Parse("bbb3d139-fbec-430c-9574-02f3412c95df");
   Price.Where(y =&gt; y.Id == varone &amp;&amp; y.ApplicationDate.Value &lt;= new DateTime(2016,06,01))
                  .OrderByDescending(y =&gt; y.ApplicationDate.Value)
                  .FirstOrDefault().Dump();
  </code></pre>