Support on to many where( it.xx.count()>0)

This commit is contained in:
skx
2021-01-17 02:35:33 +08:00
parent 1d0fe5b9d3
commit 1ea83c8323
4 changed files with 110 additions and 4 deletions

View File

@@ -21,6 +21,17 @@ namespace OrmTest
.Where(it => it.A.Name == "a")
.ToList();
var list3 = Db.Queryable<Order>()
.Mapper(it => it.Items, it => it.Items.First().OrderId)
.Where(it => it.Items.Count() > 0)
.ToList();
var list6 = Db.Queryable<Order>()
.Mapper(it => it.Items, it => it.Items.First().OrderId)
.Where(it => it.Items.Any())
.ToList();
}
}
}