Dim days = (From d In db.ShiftSchedule _
Where d.Shift1 = 1 And d.WorkDate >= StartDate _
Order By d.ID _
Skip SkipValue _
Select New With {d.ID, d.WorkDate, d.Shift1, _
.EndDate = (From dd In db.ShiftSchedule _
Where d.Shift1 = 1 And d.WorkDate >= StartDate _
Order By d.ID _
Skip SkipValue - 1 _
Select dd.WorkDate).First}).First
当我尝试执行上面的 LINQ to Entities 查询时,我收到以下错误,该代码可能有什么问题。
Count 必须是 DbConstantExpression 或 DbParameterReferenceExpression。参数名称:计数