EF ---- OrderBy多字段用法
时间:2020-06-28 15:50:45
收藏:0
阅读:835
单字段
.OrderBy(p => p.Status).ToList();
多字段
.OrderBy(p => p.Status).ThenByDescending(p=>p.ApplyTime).ToList();
//注: .ThenBy正序 .ThenByDescending倒序
原文:https://www.cnblogs.com/JoeYD/p/13202926.html
评论(0)