title: How to get the highest number in a returned Linq query result?
body: <p>I have a table called Picture in my database. I'm using the primary key of that table as the filenames for the pictures.</p>
  
  <p>When creating a new picture I need it to follow a logical sequence. For this I'm using the primary key.</p>
  
  <p>How can I get the highest value of the primary key for this table?</p>
  
  <p>Picture table has these columns: ID, IDProject (foreign key). I just need to get the highest ID number.</p>