|
@ -86,7 +86,7 @@ namespace SqlSugar |
|
|
if (rowSelector.Body is MemberExpression) |
|
|
if (rowSelector.Body is MemberExpression) |
|
|
rowName = ((MemberExpression)rowSelector.Body).Member.Name; |
|
|
rowName = ((MemberExpression)rowSelector.Body).Member.Name; |
|
|
else |
|
|
else |
|
|
rowName = string.Join(UtilConstants.ReplaceKey, ((NewExpression)rowSelector.Body).Arguments.Select(it => it as MemberExpression).Select(it => it.Member.Name)); |
|
|
rowName = "Group_"+string.Join("_", ((NewExpression)rowSelector.Body).Arguments.Select(it => it as MemberExpression).Select(it => it.Member.Name)); |
|
|
var columns = source.Select(columnSelector).Distinct(); |
|
|
var columns = source.Select(columnSelector).Distinct(); |
|
|
|
|
|
|
|
|
cols = (new[] { rowName }).Concat(columns.Select(x => x.ToString())).ToList(); |
|
|
cols = (new[] { rowName }).Concat(columns.Select(x => x.ToString())).ToList(); |
|
|