Add Check

This commit is contained in:
sunkaixuna 2021-09-01 01:49:00 +08:00
parent 7245d57377
commit cef4967d8a

View File

@ -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);
}