title: LINQ , How to get Max ID with "where" condition
body: <p>I have searched on stack overflow, but find example for max ID only , I want to find Max ID for some particular condition. Something like this   </p>
  
  <pre><code>var nRow = from p in ctx.FormControls
  .          where p.FormObjectsId == FormID
  .          select Max(p.Id);
  </code></pre>
  
  <p>How to do it ?</p>