Linq order by aggregate in the select { }

后端 未结 3 762
青春惊慌失措
青春惊慌失措 2021-01-04 02:27

Here is one I am working on:

var fStep =
            from insp in sq.Inspections
            where insp.TestTimeStamp > dStartTime && insp.TestTim         


        
3条回答
  •  庸人自扰
    2021-01-04 03:26

    wrap the whole query in parentheses and

    .OrderBy(x => x.FailedCount).ThenBy(x => x.CancelCount);
    

提交回复
热议问题