mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 01:58:13 +08:00
Synchronization code
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user