mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
-
This commit is contained in:
parent
851c245bb3
commit
40051a169e
@ -183,7 +183,7 @@ namespace SqlSugar
|
||||
Check.Exception(typeof(T).FullName.Contains("System.Collections.Generic.List`"), " need where T: class, new() ");
|
||||
if (typeof(T).Name == "Object")
|
||||
{
|
||||
Check.ExceptionEasy("Object type use db.InsertableByObject(obj).ExecuteCommand()", "检测到T为Object类型,请使用 db.InsertableByObject(obj).ExecuteCommand(),Insertable不支持object,InsertableByObject可以不过功能比较少");
|
||||
Check.ExceptionEasy("Object type use db.InsertableByObject(obj).ExecuteCommand()", "检测到T为Object类型,请使用 db.InsertableByObject(obj).ExecuteCommand(),Insertable不支持object,InsertableByObject可以(缺点:功能比较少)");
|
||||
}
|
||||
return this.Context.Insertable<T>(insertObj);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user