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,
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());
result= await bulk.LoadAsync();
//执行成功才删除文件

Loading…
Cancel
Save