Skip to content

Commit 538ec10

Browse files
author
Lodewijk Sioen
committed
2 parents e61f097 + 44ac05c commit 538ec10

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/NHibernate.Test/Async/Linq/ProjectionsTests.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,14 @@ public async Task CanProjectCollectionsAsync()
232232
Assert.That(result.Count, Is.EqualTo(830));
233233
}
234234

235+
[Test]
236+
public async Task CanProjectCollectionsWithFetchAsync()
237+
{
238+
var query = db.Orders.Fetch(o => o.OrderLines).Select(o => o.OrderLines);
239+
var result = await (query.ToListAsync());
240+
Assert.That(result.Count, Is.EqualTo(830));
241+
}
242+
235243
[Test]
236244
public async Task CanProjectCollectionsInsideAnonymousTypeAsync()
237245
{

0 commit comments

Comments
 (0)