views:

16

answers:

1

In a previous post there was mentioned using an overload of the Select method 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 Entites? Am I missing something in my query?

+1  A: 

Ralph, I did update that answer to fix the exception. It will work fine for him, but since it's client-side it's not what you need for your other question. No, L2E does not support this overload. I'll answer your other question over there.

Craig Stuntz