We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47a0c12 commit 8439190Copy full SHA for 8439190
src/NHibernate.Test/LazyProperty/LazyPropertyFixture.cs
@@ -130,5 +130,28 @@ public void CanLoadAndSaveObjectInDifferentSessions()
130
s.Merge(book);
131
}
132
133
+
134
135
+ [Test]
136
+ public void CanUpdateNonLazyWithoutLoadingLazyProperty()
137
+ {
138
+ Book book;
139
+ using (ISession s = OpenSession())
140
+ using (var trans = s.BeginTransaction())
141
142
+ book = s.Get<Book>(1);
143
+ book.Name += "updated";
144
145
+ Assert.That(NHibernateUtil.IsPropertyInitialized(book, "ALotOfText"), Is.False);
146
+ trans.Commit();
147
+ }
148
149
150
151
152
153
+ Assert.That(book.Name, Is.EqualTo("some nameupdated"));
154
155
156
157
0 commit comments