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