C# OrderBy多个字段排序
先按Sort字段正序排序,再按CreateDate降序排序,
如果三个字段进行排序,我才是再后面再加ThenByDescending
var result = _IDbConnection.Query<QueryResponseGoods>(seSql.ToString(), request).OrderBy(a => a.Sort).ThenByDescending(b => b.CreateDate).ToList();
搜索
复制
标签:OrderBy,Sort,C#,CreateDate,ThenByDescending,排序 From: https://www.cnblogs.com/jankie1122/p/11108747.html