In the following example t is also commited if I call t1.Commit(). A consequence is that I get an exception if I call t.Commit() later. I do not want t to be commited as I call t1. Commit(). Can someone give me the right direction?
Code:
using (ITransaction t = session.BeginTransaction())
{
using (ITransaction t1 = session.BeginTransaction())
{
Node Node99= (Node)session.Load(typeof(Node), 99);
Node99._name = "Node 99";
session.Save(Node99);
t1.Commit();
}
Node Node98= (Node)session.Load(typeof(Node), 98);
Node98._name = "Node98";
session.Save(Node98);
t.Commit();
}