【发布时间】:2010-06-24 14:16:11
【问题描述】:
在previous post 中提到,Select 方法的重载可用于引用索引值。这正是我需要回答this question
但是,当我尝试如下使用此重载时,我得到一个 NotSupportedException。
DbObjects.OrderBy (o => o.CreatedOn ).Select((o,i) => new {entity = o, rownumber = i})
LINQ to Entities 是否支持这种索引重载?我的查询是否遗漏了什么?
【问题讨论】:
标签: entity-framework linq-to-entities