Browse Source

Update .net

pull/14/MERGE
sunkaixuan 3 years ago
parent
commit
da7213f45b
  1. 11
      Src/Asp.Net/SqlSugar/Abstract/SugarProvider/SqlSugarProvider.cs

11
Src/Asp.Net/SqlSugar/Abstract/SugarProvider/SqlSugarProvider.cs

@ -1053,7 +1053,16 @@ namespace SqlSugar
addParameters.Add(parameter);
}
parsmeters.AddRange(addParameters);
itemSql = itemSql.TrimEnd(';') + ";";
itemSql = itemSql
.TrimEnd('\r')
.TrimEnd('\n')
.TrimEnd('\r')
.TrimEnd('\n')
.TrimEnd(';') + ";";
if (itemSql == "begin;")
{
itemSql = itemSql.TrimEnd(';') + "\n";
}
sqlBuilder.AppendLine(itemSql);
index++;
}

Loading…
Cancel
Save