How To Project a Line Number Into Linq Query Results
Well, the easiest way would be to do it at the client side rather than the database side, and use the overload of Select which provides an index as well: public List<ScoreWithRank> GetHighScoresWithRank(string gameId, int count) { Guid guid = new Guid(gameId); using (PPGEntities entities = new PPGEntities()) { var query = from s in … Read more