public void FilteredQuery()
		{
			var xmlDocument = new XmlDocument();
			var xmlElement = xmlDocument.CreateElement("testXml");
			xmlDocument.AppendChild(xmlElement);
			var parentA = new ClassWithXmlMember("A", xmlDocument);

			using (var s = sessions.OpenSession())
			using (var t = s.BeginTransaction())
			{
				s.Save(parentA);
				t.Commit();
			}
		}
Beispiel #2
0
        public void FilteredQuery()
        {
            var xmlDocument = new XmlDocument();
            var xmlElement  = xmlDocument.CreateElement("testXml");

            xmlDocument.AppendChild(xmlElement);
            var parentA = new ClassWithXmlMember("A", xmlDocument);

            using (var s = Sfi.OpenSession())
                using (var t = s.BeginTransaction())
                {
                    s.Save(parentA);
                    t.Commit();
                }
        }
Beispiel #3
0
        public async Task FilteredQueryAsync()
        {
            var xmlDocument = new XmlDocument();
            var xmlElement  = xmlDocument.CreateElement("testXml");

            xmlDocument.AppendChild(xmlElement);
            var parentA = new ClassWithXmlMember("A", xmlDocument);

            using (var s = Sfi.OpenSession())
                using (var t = s.BeginTransaction())
                {
                    await(s.SaveAsync(parentA));
                    await(t.CommitAsync());
                }
        }