C# OrderBy多个字段排序
先按Sort字段正序排序,再按CreateDate降序排序,
如果三个字段进行排序,我才是再后面再加ThenByDescending
var result = _IDbConnection.Query<QueryResponseGoods>(seSql.ToString(), request).OrderBy(a => a.Sort).ThenByDescending(b => b.CreateDate).ToList();
搜索
复制