EF ---- OrderBy多字段用法

单字段
.OrderBy(p => p.Status).ToList();

 

多字段

.OrderBy(p => p.Status).ThenByDescending(p=>p.ApplyTime).ToList();

//注: .ThenBy正序    .ThenByDescending倒序

posted @ 2020-06-28 15:13  一介桃白白  阅读(2637)  评论(0编辑  收藏  举报