Add Check

This commit is contained in:
sunkaixuna 2021-08-31 11:52:47 +08:00
parent 295b37e302
commit ddd993ed45

View File

@ -351,6 +351,7 @@ namespace SqlSugar
}
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});
}
public ISaveable<T> Saveable<T>(List<T> saveObjects) where T : class, new()