mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 18:48:09 +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()
|
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);
|
return this.Context.Insertable<T>(insertObj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user