@@ -531,20 +531,29 @@ into grp
531
531
[ Test ( Description = "NH-3797" ) ]
532
532
public void GroupByComputedValue ( )
533
533
{
534
+ if ( Dialect is FirebirdDialect )
535
+ Assert . Ignore ( "Firebird does not support complex group by expressions" ) ;
536
+
534
537
var orderGroups = db . Orders . GroupBy ( o => o . Customer . CustomerId == null ? 0 : 1 ) . Select ( g => new { Key = g . Key , Count = g . Count ( ) } ) . ToList ( ) ;
535
538
Assert . AreEqual ( 830 , orderGroups . Sum ( g => g . Count ) ) ;
536
539
}
537
540
538
541
[ Test ( Description = "NH-3797" ) ]
539
542
public void GroupByComputedValueInAnonymousType ( )
540
543
{
544
+ if ( Dialect is FirebirdDialect )
545
+ Assert . Ignore ( "Firebird does not support complex group by expressions" ) ;
546
+
541
547
var orderGroups = db . Orders . GroupBy ( o => new { Key = o . Customer . CustomerId == null ? 0 : 1 } ) . Select ( g => new { Key = g . Key , Count = g . Count ( ) } ) . ToList ( ) ;
542
548
Assert . AreEqual ( 830 , orderGroups . Sum ( g => g . Count ) ) ;
543
549
}
544
550
545
551
[ Test ( Description = "NH-3797" ) ]
546
552
public void GroupByComputedValueInObjectArray ( )
547
553
{
554
+ if ( Dialect is FirebirdDialect )
555
+ Assert . Ignore ( "Firebird does not support complex group by expressions" ) ;
556
+
548
557
var orderGroups = db . Orders . GroupBy ( o => new [ ] { o . Customer . CustomerId == null ? 0 : 1 , } ) . Select ( g => new { Key = g . Key , Count = g . Count ( ) } ) . ToList ( ) ;
549
558
Assert . AreEqual ( 830 , orderGroups . Sum ( g => g . Count ) ) ;
550
559
}
@@ -669,62 +678,89 @@ public void GroupByKeyWithConstantFromVariable()
669
678
[ Test ( Description = "NH-3801" ) ]
670
679
public void GroupByComputedValueWithJoinOnObject ( )
671
680
{
681
+ if ( Dialect is FirebirdDialect )
682
+ Assert . Ignore ( "Firebird does not support complex group by expressions" ) ;
683
+
672
684
var orderGroups = db . OrderLines . GroupBy ( o => o . Order . Customer == null ? 0 : 1 ) . Select ( g => new { Key = g . Key , Count = g . Count ( ) } ) . ToList ( ) ;
673
685
Assert . AreEqual ( 2155 , orderGroups . Sum ( g => g . Count ) ) ;
674
686
}
675
687
676
688
[ Test ( Description = "NH-3801" ) ]
677
689
public void GroupByComputedValueWithJoinOnId ( )
678
690
{
691
+ if ( Dialect is FirebirdDialect )
692
+ Assert . Ignore ( "Firebird does not support complex group by expressions" ) ;
693
+
679
694
var orderGroups = db . OrderLines . GroupBy ( o => o . Order . Customer . CustomerId == null ? 0 : 1 ) . Select ( g => new { Key = g . Key , Count = g . Count ( ) } ) . ToList ( ) ;
680
695
Assert . AreEqual ( 2155 , orderGroups . Sum ( g => g . Count ) ) ;
681
696
}
682
697
683
698
[ Test ( Description = "NH-3801" ) ]
684
699
public void GroupByComputedValueInAnonymousTypeWithJoinOnObject ( )
685
700
{
701
+ if ( Dialect is FirebirdDialect )
702
+ Assert . Ignore ( "Firebird does not support complex group by expressions" ) ;
703
+
686
704
var orderGroups = db . OrderLines . GroupBy ( o => new { Key = o . Order . Customer == null ? 0 : 1 } ) . Select ( g => new { Key = g . Key , Count = g . Count ( ) } ) . ToList ( ) ;
687
705
Assert . AreEqual ( 2155 , orderGroups . Sum ( g => g . Count ) ) ;
688
706
}
689
707
690
708
[ Test ( Description = "NH-3801" ) ]
691
709
public void GroupByComputedValueInAnonymousTypeWithJoinOnId ( )
692
710
{
711
+ if ( Dialect is FirebirdDialect )
712
+ Assert . Ignore ( "Firebird does not support complex group by expressions" ) ;
713
+
693
714
var orderGroups = db . OrderLines . GroupBy ( o => new { Key = o . Order . Customer . CustomerId == null ? 0 : 1 } ) . Select ( g => new { Key = g . Key , Count = g . Count ( ) } ) . ToList ( ) ;
694
715
Assert . AreEqual ( 2155 , orderGroups . Sum ( g => g . Count ) ) ;
695
716
}
696
717
697
718
[ Test ( Description = "NH-3801" ) ]
698
719
public void GroupByComputedValueInObjectArrayWithJoinOnObject ( )
699
720
{
721
+ if ( Dialect is FirebirdDialect )
722
+ Assert . Ignore ( "Firebird does not support complex group by expressions" ) ;
723
+
700
724
var orderGroups = db . OrderLines . GroupBy ( o => new [ ] { o . Order . Customer == null ? 0 : 1 } ) . Select ( g => new { Key = g . Key , Count = g . Count ( ) } ) . ToList ( ) ;
701
725
Assert . AreEqual ( 2155 , orderGroups . Sum ( g => g . Count ) ) ;
702
726
}
703
727
704
728
[ Test ( Description = "NH-3801" ) ]
705
729
public void GroupByComputedValueInObjectArrayWithJoinOnId ( )
706
730
{
731
+ if ( Dialect is FirebirdDialect )
732
+ Assert . Ignore ( "Firebird does not support complex group by expressions" ) ;
733
+
707
734
var orderGroups = db . OrderLines . GroupBy ( o => new [ ] { o . Order . Customer . CustomerId == null ? 0 : 1 } ) . Select ( g => new { Key = g . Key , Count = g . Count ( ) } ) . ToList ( ) ;
708
735
Assert . AreEqual ( 2155 , orderGroups . Sum ( g => g . Count ) ) ;
709
736
}
710
737
711
738
[ Test ( Description = "NH-3801" ) ]
712
739
public void GroupByComputedValueInObjectArrayWithJoinInRightSideOfCase ( )
713
740
{
741
+ if ( Dialect is FirebirdDialect )
742
+ Assert . Ignore ( "Firebird does not support complex group by expressions" ) ;
743
+
714
744
var orderGroups = db . OrderLines . GroupBy ( o => new [ ] { o . Order . Customer . CustomerId == null ? "unknown" : o . Order . Customer . CompanyName } ) . Select ( g => new { Key = g . Key , Count = g . Count ( ) } ) . ToList ( ) ;
715
745
Assert . AreEqual ( 2155 , orderGroups . Sum ( g => g . Count ) ) ;
716
746
}
717
747
718
748
[ Test ( Description = "NH-3844" ) ]
719
749
public void GroupByComputedValueFromNestedArraySelect ( )
720
750
{
751
+ if ( Dialect is FirebirdDialect )
752
+ Assert . Ignore ( "Firebird does not support complex group by expressions" ) ;
753
+
721
754
var orderGroups = db . OrderLines . Select ( o => new object [ ] { o } ) . GroupBy ( x => new object [ ] { ( ( OrderLine ) x [ 0 ] ) . Order . Customer == null ? 0 : 1 } ) . Select ( g => new { Key = g . Key , Count = g . Count ( ) } ) . ToList ( ) ;
722
755
Assert . AreEqual ( 2155 , orderGroups . Sum ( g => g . Count ) ) ;
723
756
}
724
757
725
758
[ Test ( Description = "NH-3844" ) ]
726
759
public void GroupByComputedValueFromNestedObjectSelect ( )
727
760
{
761
+ if ( Dialect is FirebirdDialect )
762
+ Assert . Ignore ( "Firebird does not support complex group by expressions" ) ;
763
+
728
764
var orderGroups = db . OrderLines . Select ( o => new { OrderLine = ( object ) o } ) . GroupBy ( x => new object [ ] { ( ( OrderLine ) x . OrderLine ) . Order . Customer == null ? 0 : 1 } ) . Select ( g => new { Key = g . Key , Count = g . Count ( ) } ) . ToList ( ) ;
729
765
Assert . AreEqual ( 2155 , orderGroups . Sum ( g => g . Count ) ) ;
730
766
}
0 commit comments