mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-21 19:09:57 +08:00
Update ToPivotList
This commit is contained in:
@@ -99,7 +99,7 @@ namespace SqlSugar
|
|||||||
.Select(x => row[x.Key] = x.Value)
|
.Select(x => row[x.Key] = x.Value)
|
||||||
.SelectMany(x => properties, (x, y) => row[y.Name] = y.GetValue(rowGroup.Key, null))
|
.SelectMany(x => properties, (x, y) => row[y.Name] = y.GetValue(rowGroup.Key, null))
|
||||||
.ToList();
|
.ToList();
|
||||||
return row;
|
return row.OrderBy(it=> rowName.Contains(it.Key)?0:1);
|
||||||
});
|
});
|
||||||
return rows;
|
return rows;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user