Update Queryable.ToParentList

This commit is contained in:
sunkaixuan
2022-04-08 20:00:16 +08:00
parent e04d778d14
commit 1888a1394f
2 changed files with 31 additions and 7 deletions

View File

@@ -28,7 +28,7 @@ namespace OrmTest
//count = SqlFunc.AggregateSum(SqlFunc.IIF(b.客户确认状态 < 20, 1, 0))
}).ToList();
db.Queryable<Tree>().ToParentList(it => it.ParentId, "0");
db.Queryable<Tree>().LeftJoin<Tree>((t,y)=>t.Id==y.Id).Where(t=>1==1).Select(t=>t).ToParentList(it => it.ParentId, "0");
}
public class Unitadfaint21