We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 782f8d7 commit 09b1d43Copy full SHA for 09b1d43
src/NHibernate.Test/FetchLazyProperties/FetchLazyPropertiesFixture.cs
@@ -175,6 +175,18 @@ public void TestLinqFetchProperty()
175
AssertFetchProperty(person);
176
}
177
178
+ [Test]
179
+ public void TestLinqFetchPropertyAfterSelect()
180
+ {
181
+ using var s = OpenSession();
182
+ var owner = s.Query<Animal>()
183
+ .Select(a => a.Owner)
184
+ .Fetch(o => o.Image)
185
+ .FirstOrDefault(o => o.Id == 1);
186
+
187
+ AssertFetchProperty(owner);
188
+ }
189
190
private static void AssertFetchProperty(Person person)
191
{
192
Assert.That(person, Is.Not.Null);
0 commit comments