In a previous post it was mentioned that an overload of the Select
method can be used to reference an index value. This would be exactly what I need to answer this question
However, when I try to use this overload as below, I get a NotSupportedException
.
DbObjects.OrderBy (o => o.CreatedOn ).Select((o,i) => new {entity = o, rownumber = i})
Is this indexed overload supported by LINQ to Entities? Am I missing something in my query?