private void SavePerson(Person p) { using (ISession session = OpenSession()) { using (ITransaction tr = BeginTransaction(session)) { session.SaveOrUpdate(p); session.Flush(); tr.Commit(); } } }
protected override void OnSetUp() { base.OnSetUp(); SetAllowSnapshotIsolation(true); person = new Person(); person.IdentificationNumber = 123; SavePerson(person); }