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