mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update db.Storageable
This commit is contained in:
parent
e4c3d88808
commit
82a55c0cc9
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user