diff --git a/Src/Asp.Net/SqlSugar/Abstract/InsertableProvider/InsertableHelper.cs b/Src/Asp.Net/SqlSugar/Abstract/InsertableProvider/InsertableHelper.cs index a5b2b8da0..b0cc79549 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/InsertableProvider/InsertableHelper.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/InsertableProvider/InsertableHelper.cs @@ -179,6 +179,10 @@ namespace SqlSugar foreach (var item in InsertObjs) { List insertItem = new List(); + if (item is Dictionary) + { + Check.ExceptionEasy("To use Insertable dictionary, use string or object", "Insertable字典请使用string,object类型"); + } if (item is Dictionary) { SetInsertItemByDic(i, item, insertItem); diff --git a/Src/Asp.Net/SqlSugar/Abstract/UpdateProvider/UpdateableHelper.cs b/Src/Asp.Net/SqlSugar/Abstract/UpdateProvider/UpdateableHelper.cs index c9fe67ffb..4b14a5b04 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/UpdateProvider/UpdateableHelper.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/UpdateProvider/UpdateableHelper.cs @@ -197,6 +197,10 @@ namespace SqlSugar { List updateItem = new List(); var isDic = item is Dictionary; + if (item is Dictionary) + { + Check.ExceptionEasy("To use Updateable dictionary, use string or object", "Updateable字典请使用string,object类型"); + } if (isDic) { SetUpdateItemByDic(i, item, updateItem);