Ejemplo n.º 1
0
		protected override void OnSetUp()
		{
			var ent = new TheEntity { TheValue = "Hola", Id = id };
			using (var s = OpenSession())
			using (var tx = s.BeginTransaction())
			{
				s.Save(ent);
				tx.Commit();
			}
		}
Ejemplo n.º 2
0
        protected override void OnSetUp()
        {
            var ent = new TheEntity {
                TheValue = "Hola", Id = id
            };

            using (var s = OpenSession())
                using (var tx = s.BeginTransaction())
                {
                    s.Save(ent);
                    tx.Commit();
                }
        }