mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-08 06:37:57 +08:00
Synchronization code
This commit is contained in:
parent
61a16b3fc4
commit
c7d6d9f974
@ -164,7 +164,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
colum = table.Columns[i];
|
colum = table.Columns[i];
|
||||||
if (i != 0) sb.Append(",");
|
if (i != 0) sb.Append(",");
|
||||||
if (colum.DataType == typeof(string) && (row[colum].ToString().Contains(",") || row[colum].ToString().Contains("\r") || row[colum].ToString().Contains("\"")))
|
if (colum.DataType == typeof(string) && (row[colum].ToString().Contains(",") || row[colum].ToString().Contains("\r") || row[colum].ToString().Contains("\"") || row[colum].ToString().Contains("\n")))
|
||||||
{
|
{
|
||||||
sb.Append("\"" + row[colum].ToString().Replace("\"", "\"\"") + "\"");
|
sb.Append("\"" + row[colum].ToString().Replace("\"", "\"\"") + "\"");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user