mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-26 02:39:14 +08:00
-
This commit is contained in:
@@ -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 = "Key";
|
rowName = "Pivot_Group_Keys";
|
||||||
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();
|
||||||
|
|||||||
Reference in New Issue
Block a user