|
|
@ -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; |
|
|
|