diff --git a/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlBlukCopy.cs b/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlBlukCopy.cs index 23989a677..4a37828d7 100644 --- a/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlBlukCopy.cs +++ b/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlBlukCopy.cs @@ -90,7 +90,7 @@ namespace SqlSugar FieldTerminator = ",", FieldQuotationCharacter = '"', EscapeCharacter = '"', - LineTerminator = "\r\n", + LineTerminator = Environment.NewLine, FileName = fileName, NumberOfLinesToSkip = 0, TableName = dt.TableName, diff --git a/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlFastBuilder.cs b/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlFastBuilder.cs index 56f7ceac0..1aadc759e 100644 --- a/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlFastBuilder.cs +++ b/Src/Asp.Net/SqlSugar/Realization/MySql/SqlBuilder/MySqlFastBuilder.cs @@ -38,7 +38,7 @@ namespace SqlSugar FieldTerminator = ",", FieldQuotationCharacter = '"', EscapeCharacter = '"', - LineTerminator = "\r\n", + LineTerminator = Environment.NewLine, FileName = fileName, NumberOfLinesToSkip = 0, TableName = dt.TableName,