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