mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Synchronization code
This commit is contained in:
parent
ebb3f7ead7
commit
2f0e5b7319
@ -179,6 +179,10 @@ namespace SqlSugar
|
||||
foreach (var item in InsertObjs)
|
||||
{
|
||||
List<DbColumnInfo> insertItem = new List<DbColumnInfo>();
|
||||
if (item is Dictionary<string, string>)
|
||||
{
|
||||
Check.ExceptionEasy("To use Insertable dictionary, use string or object", "Insertable字典请使用string,object类型");
|
||||
}
|
||||
if (item is Dictionary<string, object>)
|
||||
{
|
||||
SetInsertItemByDic(i, item, insertItem);
|
||||
|
@ -197,6 +197,10 @@ namespace SqlSugar
|
||||
{
|
||||
List<DbColumnInfo> updateItem = new List<DbColumnInfo>();
|
||||
var isDic = item is Dictionary<string, object>;
|
||||
if (item is Dictionary<string, string>)
|
||||
{
|
||||
Check.ExceptionEasy("To use Updateable dictionary, use string or object", "Updateable字典请使用string,object类型");
|
||||
}
|
||||
if (isDic)
|
||||
{
|
||||
SetUpdateItemByDic(i, item, updateItem);
|
||||
|
Loading…
Reference in New Issue
Block a user