File tree Expand file tree Collapse file tree
Orm/Xtensive.Orm.Tests/Linq Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -531,15 +531,17 @@ public void GroupBySelectKeyTest()
531531 [ Test ]
532532 public void GroupBySelectKeyWithSelectCalculableColumnTest ( )
533533 {
534- IQueryable < string > result = Session . Query . All < Track > ( ) . GroupBy ( t => t . Name ) . Select ( g => g . Key + "String" ) ;
534+ //avoid great amout of data for grouping, some storages are painfully slow with such operation
535+ var result = Session . Query . All < Employee > ( ) . GroupBy ( t => t . LastName ) . Select ( g => g . Key + "String" ) ;
535536 Assert . That ( result , Is . Not . Empty ) ;
536537 QueryDumper . Dump ( result ) ;
537538 }
538539
539540 [ Test ]
540541 public void GroupBySelectKeyWithCalculableColumnTest ( )
541542 {
542- var result = Session . Query . All < Track > ( ) . GroupBy ( t => t . Name + "String" ) ;
543+ //avoid great amout of data for grouping, some storages are painfully slow with such operation
544+ var result = Session . Query . All < Employee > ( ) . GroupBy ( t => t . LastName + "String" ) ;
543545 var list = result . ToList ( ) ;
544546 Assert . That ( result , Is . Not . Empty ) ;
545547 DumpGrouping ( result ) ;
You can’t perform that action at this time.
0 commit comments