mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-01 10:10:16 +08:00
Add Check
This commit is contained in:
parent
7245d57377
commit
cef4967d8a
@ -86,6 +86,7 @@ namespace SqlSugar
|
||||
|
||||
public IInsertable<T> Insertable<T>(T insertObj) where T : class, new()
|
||||
{
|
||||
Check.Exception(typeof(T).FullName.Contains("System.Collections.Generic.List`"), " need where T: class, new() ");
|
||||
return this.Context.Insertable<T>(insertObj);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user