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