mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-26 21:38:32 +08:00
Update db.Storageable
This commit is contained in:
@@ -70,6 +70,10 @@ namespace SqlSugar
|
|||||||
|
|
||||||
public StorageableResult<T> ToStorage()
|
public StorageableResult<T> ToStorage()
|
||||||
{
|
{
|
||||||
|
if (whereFuncs == null || whereFuncs.Count == 0)
|
||||||
|
{
|
||||||
|
return this.Saveable().ToStorage();
|
||||||
|
}
|
||||||
if (this.allDatas.Count == 0)
|
if (this.allDatas.Count == 0)
|
||||||
return new StorageableResult<T>() {
|
return new StorageableResult<T>() {
|
||||||
AsDeleteable = this.Context.Deleteable<T>().AS(asname).Where(it => false),
|
AsDeleteable = this.Context.Deleteable<T>().AS(asname).Where(it => false),
|
||||||
|
|||||||
Reference in New Issue
Block a user