mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-04 12:47:57 +08:00
Add Check
This commit is contained in:
parent
295b37e302
commit
ddd993ed45
@ -351,6 +351,7 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
public IStorageable<T> Storageable<T>(T data) where T : class, new()
|
public IStorageable<T> Storageable<T>(T data) where T : class, new()
|
||||||
{
|
{
|
||||||
|
Check.Exception(typeof(T).FullName.Contains("System.Collections.Generic.List`"), " need where T: class, new() ");
|
||||||
return this.Context.Storageable(new List<T> { data});
|
return this.Context.Storageable(new List<T> { data});
|
||||||
}
|
}
|
||||||
public ISaveable<T> Saveable<T>(List<T> saveObjects) where T : class, new()
|
public ISaveable<T> Saveable<T>(List<T> saveObjects) where T : class, new()
|
||||||
|
Loading…
Reference in New Issue
Block a user