Example #1
0
		protected override void OnSetUp()
		{
			using (var session = OpenSession())
			using (var transaction = session.BeginTransaction())
			{
				var t = new XmlTest { Data = XDocument.Parse("<test>123</test>") };

				session.Save(t);
				session.Flush();
				transaction.Commit();
			}
		}
Example #2
0
        protected override void OnSetUp()
        {
            using (var session = OpenSession())
                using (var transaction = session.BeginTransaction())
                {
                    var t = new XmlTest {
                        Data = XDocument.Parse("<test>123</test>")
                    };

                    session.Save(t);
                    session.Flush();
                    transaction.Commit();
                }
        }