public void Setup()
 {
     var fa = new PropertyAccessEntity { Data = "first" };
     using (var tx = Session.BeginTransaction())
     {
         id = (int)Session.Save(fa);
         tx.Commit();
     }
     using (var tx = Session.BeginTransaction())
     {
         fa.Data = "second";
         tx.Commit();
     }
 }
Ejemplo n.º 2
0
        public void Setup()
        {
            var fa = new PropertyAccessEntity {
                Data = "first"
            };

            using (var tx = Session.BeginTransaction())
            {
                id = (int)Session.Save(fa);
                tx.Commit();
            }
            using (var tx = Session.BeginTransaction())
            {
                fa.Data = "second";
                tx.Commit();
            }
        }