Update db.Storageable

This commit is contained in:
sunkaixuna 2021-07-13 12:41:09 +08:00
parent e4c3d88808
commit 82a55c0cc9

View File

@ -70,6 +70,10 @@ namespace SqlSugar
public StorageableResult<T> ToStorage()
{
if (whereFuncs == null || whereFuncs.Count == 0)
{
return this.Saveable().ToStorage();
}
if (this.allDatas.Count == 0)
return new StorageableResult<T>() {
AsDeleteable = this.Context.Deleteable<T>().AS(asname).Where(it => false),