Skip to content

Commit 5af3ac9

Browse files
authored
Add Persist test
1 parent f35379a commit 5af3ac9

File tree

1 file changed

+13
-0
lines changed
  • src/NHibernate.Test/NHSpecificTest/GH2608

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,18 @@ public void MergeBidiPrimaryKeyOneToOne()
2929
tx.Commit();
3030
}
3131
}
32+
33+
[Test]
34+
public void PersistBidiPrimaryKeyOneToOne()
35+
{
36+
using (var s = OpenSession())
37+
using (var tx = s.BeginTransaction())
38+
{
39+
var p = new Person { Name = "steve" };
40+
p.Details = new PersonalDetails { SomePersonalDetail = "I have big feet", Person = p };
41+
s.Persist(p);
42+
tx.Commit();
43+
}
44+
}
3245
}
3346
}

0 commit comments

Comments
 (0)