Update exp to sql

This commit is contained in:
sunkaixuna
2021-09-10 18:32:31 +08:00
parent 0c1195b287
commit bdf993861a
3 changed files with 3 additions and 3 deletions

View File

@@ -253,7 +253,7 @@ namespace OrmTest
var exp = Expressionable.Create<Custom>().And(s => s.Id==1).ToExpression();
var list4 = db.Queryable<Order>().Select(it => new
{
customName = SqlFunc.Subqueryable<Custom>().Where(exp).GroupBy(s => s.Name).Having(s => SqlFunc.AggregateCount(s.Id) > 0).Select(s => s.Name)
customName = SqlFunc.Subqueryable<Custom>().Where(exp).Where(exp).GroupBy(s => s.Name).Having(s => SqlFunc.AggregateCount(s.Id) > 0).Select(s => s.Name)
}).ToList();
Console.WriteLine("#### Subquery End ####");