mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-24 16:18:47 +08:00
Update mysqlconnector
This commit is contained in:
parent
fc5f5f3f58
commit
c843924cec
@ -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();
|
||||||
//执行成功才删除文件
|
//执行成功才删除文件
|
||||||
|
@ -128,6 +128,14 @@ namespace SqlSugar.MySqlConnector
|
|||||||
return Convert.ToInt64(value);
|
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)
|
else if (type == UtilConstants.BoolType)
|
||||||
{
|
{
|
||||||
return value.ObjToBool() ? "1" : "0";
|
return value.ObjToBool() ? "1" : "0";
|
||||||
|
Loading…
Reference in New Issue
Block a user