mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update demo
This commit is contained in:
parent
1ea4c7c2e2
commit
288cba819f
@ -22,11 +22,11 @@ namespace OrmTest
|
||||
{
|
||||
Id = t.Id,
|
||||
Name = t.AName,
|
||||
Amount = SqlFunc.Subqueryable<TableB>()
|
||||
Amount = SqlFunc.IsNull(SqlFunc.Subqueryable<TableB>()
|
||||
.LeftJoin<TableC>((tableB, tableC) => tableB.TableCId == tableC.Id)
|
||||
.LeftJoin<TableD>((tableB, tableC, tableD) => tableB.TableDId == tableD.Id)
|
||||
.Where((tableB, tableC, tableD) => tableD.TableAId == t.Id)
|
||||
.Sum((tableB, tableC, tableD) => SqlFunc.IsNull(tableB.Quantity * tableB.Price, 0))
|
||||
.Sum((tableB, tableC, tableD) =>tableB.Quantity * tableB.Price), 0)
|
||||
}).ToPageListAsync(pageIndex, pageSize, total).GetAwaiter().GetResult();
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user