We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e00fef commit ee89456Copy full SHA for ee89456
src/NHibernate.Test/LazyProperty/LazyPropertyFixture.cs
@@ -166,5 +166,27 @@ public void CanUpdateNonLazyWithoutLoadingLazyProperty()
166
Assert.That(book.FieldInterceptor, Is.EqualTo("Why not that name?updated"));
167
}
168
169
+
170
+ [Test]
171
+ public void CanMergeWithLazyProperty()
172
+ {
173
+ using (ISession s = OpenSession())
174
+ using (var tx = s.BeginTransaction())
175
176
+ var book = new Book
177
178
+ Name = "some name two",
179
+ Id = 2,
180
+ ALotOfText = "a lot of text ..."
181
+ };
182
+ s.Merge(book);
183
+ tx.Commit();
184
+ }
185
186
187
+ var book = s.Get<Book>(2);
188
+ Assert.That(book, Is.Not.Null);
189
190
191
192
0 commit comments