摘要: 动态排序扩展: public static IOrderedQueryable<T> OrderByMultipleFields<T>(this IQueryable<T> source, string[] orderByProperties, bool[] ascending) { if (ord 阅读全文
posted @ 2024-04-12 15:42 SmilePastaLi 阅读(93) 评论(0) 推荐(0)
摘要: public static Expression<Func<T, object>> GroupByExpression<T>(string[] propertyNames) { var properties = propertyNames.Select(name => typeof(T).GetPr 阅读全文
posted @ 2024-04-12 14:50 SmilePastaLi 阅读(142) 评论(0) 推荐(0)