mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update mysqlconnector
This commit is contained in:
parent
fc5f5f3f58
commit
c843924cec
@ -8,7 +8,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SqlSugar.MySqlConnector
|
||||
namespace SqlSugar.MySqlConnector
|
||||
{
|
||||
|
||||
public class MySqlFastBuilder:FastBuilder,IFastBuilder
|
||||
@ -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();
|
||||
//执行成功才删除文件
|
||||
|
@ -128,6 +128,14 @@ namespace SqlSugar.MySqlConnector
|
||||
return Convert.ToInt64(value);
|
||||
}
|
||||
}
|
||||
else if (type == UtilConstants.LongType)
|
||||
{
|
||||
return GetString(value);
|
||||
}
|
||||
else if (type == UtilConstants.IntType)
|
||||
{
|
||||
return GetString(value);
|
||||
}
|
||||
else if (type == UtilConstants.BoolType)
|
||||
{
|
||||
return value.ObjToBool() ? "1" : "0";
|
||||
|
Loading…
Reference in New Issue
Block a user