コード例 #1
0
		public void ShouldIncludeTheListIdxInserting()
		{
			using (var s = OpenSession())
			using (var tx = s.BeginTransaction())
			{
				var galery = new Galery();
				galery.Images.Add(new Image {Path = "image01.jpg"});
				s.Persist(galery);
				Assert.DoesNotThrow(tx.Commit);
			}
			using (var s = OpenSession())
			using (var tx = s.BeginTransaction())
			{
				s.CreateQuery("delete from Image").ExecuteUpdate();
				s.CreateQuery("delete from Galery").ExecuteUpdate();
				tx.Commit();
			}
		}