Skip to content

Commit 00c256f

Browse files
committed
Add regression test for #19207
1 parent 226d3a0 commit 00c256f

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

test/EFCore.Specification.Tests/Query/NorthwindMiscellaneousQueryTestBase.cs

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5588,5 +5588,58 @@ public virtual Task Projection_skip_take_projection(bool async)
55885588
.Take(10)
55895589
.Select(e => new { e.Item.Customer.City }));
55905590
}
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+
}
55915644
}
55925645
}

0 commit comments

Comments
 (0)