mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-26 21:38:32 +08:00
MySql bluk copy linux bug
This commit is contained in:
@@ -66,13 +66,13 @@ namespace SqlSugar
|
|||||||
});
|
});
|
||||||
dt.Rows.Add(row);
|
dt.Rows.Add(row);
|
||||||
}
|
}
|
||||||
var dllPath = AppDomain.CurrentDomain.BaseDirectory + "failFiles";
|
var dllPath =Path.Combine(AppDomain.CurrentDomain.BaseDirectory , "failFiles");
|
||||||
DirectoryInfo dir = new DirectoryInfo(dllPath);
|
DirectoryInfo dir = new DirectoryInfo(dllPath);
|
||||||
if (!dir.Exists)
|
if (!dir.Exists)
|
||||||
{
|
{
|
||||||
dir.Create();
|
dir.Create();
|
||||||
}
|
}
|
||||||
var fileName = dllPath + "\\" + Guid.NewGuid().ToString() + ".csv";
|
var fileName =Path.Combine( dllPath , Guid.NewGuid().ToString() + ".csv");
|
||||||
var dataTableToCsv = DataTableToCsvString(dt);
|
var dataTableToCsv = DataTableToCsvString(dt);
|
||||||
File.WriteAllText(fileName, dataTableToCsv, new UTF8Encoding(false));
|
File.WriteAllText(fileName, dataTableToCsv, new UTF8Encoding(false));
|
||||||
MySqlConnection conn = this.Context.Ado.Connection as MySqlConnection;
|
MySqlConnection conn = this.Context.Ado.Connection as MySqlConnection;
|
||||||
|
|||||||
Reference in New Issue
Block a user