Browse Source

Update MySqlConnector

pull/14/head
sunkaixuan 3 years ago
parent
commit
d54101ce68
  1. 4
      Src/Asp.Net/SqlSugar.MySqlConnector/MySql/SqlBuilder/MySqlFastBuilder.cs

4
Src/Asp.Net/SqlSugar.MySqlConnector/MySql/SqlBuilder/MySqlFastBuilder.cs

@ -44,6 +44,10 @@ namespace SqlSugar.MySqlConnector
TableName = dt.TableName, TableName = dt.TableName,
Local = true, Local = true,
}; };
if (this.CharacterSet.HasValue())
{
bulk.CharacterSet = this.CharacterSet;
}
bulk.Columns.AddRange(dt.Columns.Cast<DataColumn>().Select(colum =>new MySqlBuilder().GetTranslationColumnName(colum.ColumnName)).Distinct().ToArray()); bulk.Columns.AddRange(dt.Columns.Cast<DataColumn>().Select(colum =>new MySqlBuilder().GetTranslationColumnName(colum.ColumnName)).Distinct().ToArray());
result= await bulk.LoadAsync(); result= await bulk.LoadAsync();
//执行成功才删除文件 //执行成功才删除文件

Loading…
Cancel
Save