liuyuqing 发表于 2017-1-13 14:36:31

我想问一下,在mvc编程中下面这段代码怎么有两个orderby

var validOrdersP = visitOrderList.Where(r => r.ParentID == 0).OrderBy(r => r.OrderType).OrderBy(r => r.OrderStatus);

oioi 发表于 2017-3-13 20:20:33

先以OrderType排序,再以OrderStatus
就象SQL语句中"order by OrderType and OrderStatus
页: [1]
查看完整版本: 我想问一下,在mvc编程中下面这段代码怎么有两个orderby