File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
src/NHibernate.Test/Linq/ByMethod Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -511,18 +511,18 @@ public void ProjectingWithSubQueriesFilteredByTheAggregateKey()
511
511
public void SelectManyGroupByAggregateProjection ( )
512
512
{
513
513
var result = ( from o in db . Orders
514
- from ol in o . OrderLines
515
- group ol by ol . Product . ProductId
516
- into grp
517
- select new
518
- {
519
- ProductId = grp . Key ,
520
- Sum = grp . Sum ( x => x . UnitPrice ) ,
521
- Count = grp . Count ( ) ,
522
- Avg = grp . Average ( x => x . UnitPrice ) ,
523
- Min = grp . Min ( x => x . UnitPrice ) ,
524
- Max = grp . Max ( x => x . UnitPrice ) ,
525
- }
514
+ from ol in o . OrderLines
515
+ group ol by ol . Product . ProductId
516
+ into grp
517
+ select new
518
+ {
519
+ ProductId = grp . Key ,
520
+ Sum = grp . Sum ( x => x . UnitPrice ) ,
521
+ Count = grp . Count ( ) ,
522
+ Avg = grp . Average ( x => x . UnitPrice ) ,
523
+ Min = grp . Min ( x => x . UnitPrice ) ,
524
+ Max = grp . Max ( x => x . UnitPrice ) ,
525
+ }
526
526
) . ToList ( ) ;
527
527
528
528
Assert . That ( result . Count , Is . EqualTo ( 77 ) ) ;
You can’t perform that action at this time.
0 commit comments