title: LINQ display row numbers
body: <p>I simply want to include a row number against the returned results of my query.</p>
  
  <p>I found the following post that describes what I am trying to achieve but gives me an exception </p>
  
  <p><a href="http://vaultofthoughts.net/LINQRowNumberColumn.aspx" rel="nofollow noreferrer">http://vaultofthoughts.net/LINQRowNumberColumn.aspx</a></p>
  
  <p>"An expression tree may not contain an assignment operator"</p>
  
  <p>In MS SQL I would just use the ROWNUMBER() function, I'm simply looking for the equivalent in LINQ.</p>