File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed
test/EFCore.Specification.Tests/Query Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change @@ -5588,5 +5588,58 @@ public virtual Task Projection_skip_take_projection(bool async)
5588
5588
. Take ( 10 )
5589
5589
. Select ( e => new { e . Item . Customer . City } ) ) ;
5590
5590
}
5591
+
5592
+ // Issue#19207
5593
+ [ ConditionalTheory ]
5594
+ [ MemberData ( nameof ( IsAsyncData ) ) ]
5595
+ public virtual Task Collection_projection_skip ( bool async )
5596
+ {
5597
+ return AssertQuery (
5598
+ async ,
5599
+ ss => ss . Set < Order > ( )
5600
+ . Where ( o => o . OrderID < 10300 )
5601
+ . OrderBy ( o => o . OrderID )
5602
+ . Select ( o => new
5603
+ {
5604
+ Order = o ,
5605
+ o . OrderDetails
5606
+ } )
5607
+ . Skip ( 5 ) ) ;
5608
+ }
5609
+
5610
+ [ ConditionalTheory ]
5611
+ [ MemberData ( nameof ( IsAsyncData ) ) ]
5612
+ public virtual Task Collection_projection_take ( bool async )
5613
+ {
5614
+ return AssertQuery (
5615
+ async ,
5616
+ ss => ss . Set < Order > ( )
5617
+ . Where ( o => o . OrderID < 10300 )
5618
+ . OrderBy ( o => o . OrderID )
5619
+ . Select ( o => new
5620
+ {
5621
+ Order = o ,
5622
+ o . OrderDetails
5623
+ } )
5624
+ . Take ( 10 ) ) ;
5625
+ }
5626
+
5627
+ [ ConditionalTheory ]
5628
+ [ MemberData ( nameof ( IsAsyncData ) ) ]
5629
+ public virtual Task Collection_projection_skip_take ( bool async )
5630
+ {
5631
+ return AssertQuery (
5632
+ async ,
5633
+ ss => ss . Set < Order > ( )
5634
+ . Where ( o => o . OrderID < 10300 )
5635
+ . OrderBy ( o => o . OrderID )
5636
+ . Select ( o => new
5637
+ {
5638
+ Order = o ,
5639
+ o . OrderDetails
5640
+ } )
5641
+ . Skip ( 5 )
5642
+ . Take ( 10 ) ) ;
5643
+ }
5591
5644
}
5592
5645
}
You can’t perform that action at this time.
0 commit comments