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();
     }
 }
Esempio 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();
            }
        }