mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 08:37:25 +08:00
fix the redundant space when convert to pivot table with multiple row selector
This commit is contained in:
parent
d965b1faca
commit
b915617e3a
@ -62,7 +62,9 @@ namespace SqlSugar
|
||||
foreach (DataRow row in table.Rows)
|
||||
{
|
||||
var json =row[firstName];
|
||||
var list = json.ToString().TrimStart('{').TrimEnd('}').Split(',').Select(it=>it.Split('=')).ToList();
|
||||
var list = json.ToString().TrimStart('{', ' ').TrimEnd('}', ' ')
|
||||
.Split(new[] { ", " }, StringSplitOptions.None)
|
||||
.Select(it => it.Split(new[] { " = " }, StringSplitOptions.None)).ToList();
|
||||
foreach (var item in Regex.Split(firstName, UtilConstants.ReplaceKey))
|
||||
{
|
||||
var x = list.First(it => it.First().Trim() == item.Trim());
|
||||
|
@ -62,7 +62,9 @@ namespace SqlSugar
|
||||
foreach (DataRow row in table.Rows)
|
||||
{
|
||||
var json =row[firstName];
|
||||
var list = json.ToString().TrimStart('{').TrimEnd('}').Split(',').Select(it=>it.Split('=')).ToList();
|
||||
var list = json.ToString().TrimStart('{', ' ').TrimEnd('}', ' ')
|
||||
.Split(new[] { ", " }, StringSplitOptions.None)
|
||||
.Select(it => it.Split(new[] { " = " }, StringSplitOptions.None)).ToList();
|
||||
foreach (var item in Regex.Split(firstName, UtilConstants.ReplaceKey))
|
||||
{
|
||||
var x = list.First(it => it.First().Trim() == item.Trim());
|
||||
|
@ -62,7 +62,9 @@ namespace SqlSugar
|
||||
foreach (DataRow row in table.Rows)
|
||||
{
|
||||
var json =row[firstName];
|
||||
var list = json.ToString().TrimStart('{').TrimEnd('}').Split(',').Select(it=>it.Split('=')).ToList();
|
||||
var list = json.ToString().TrimStart('{', ' ').TrimEnd('}', ' ')
|
||||
.Split(new[] { ", " }, StringSplitOptions.None)
|
||||
.Select(it => it.Split(new[] { " = " }, StringSplitOptions.None)).ToList();
|
||||
foreach (var item in Regex.Split(firstName, UtilConstants.ReplaceKey))
|
||||
{
|
||||
var x = list.First(it => it.First().Trim() == item.Trim());
|
||||
|
Loading…
Reference in New Issue
Block a user