Skip to content

Commit 056912b

Browse files
Fix native generator glitch: when it does not trigger flush on save, the property is not yet set to the actual inserted value db side.
1 parent 0aab21e commit 056912b

File tree

1 file changed

+1
-1
lines changed
  • src/NHibernate.Test/NHSpecificTest/NH3898

1 file changed

+1
-1
lines changed

src/NHibernate.Test/NHSpecificTest/NH3898/Fixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ public void GeneratedInsertUpdateTrue()
3535
PromotionCount = 9999999
3636
};
3737
id = session.Save(employee);
38-
Assert.That(employee.PromotionCount, Is.EqualTo(0));
3938
tx.Commit();
4039
}
4140

4241
using (var session = OpenSession())
4342
using (var tx = session.BeginTransaction())
4443
{
4544
var employee = session.Get<Employee>(id);
45+
Assert.That(employee.PromotionCount, Is.EqualTo(0));
4646
employee.Name = "Employee 1 changed";
4747
employee.PromotionCount++;
4848
Assert.That(employee.PromotionCount, Is.EqualTo(1));

0 commit comments

Comments
 (0)