Exemple #1
0
 public void Visit(object obj)
 {
     CascadeOnUpdateTestCase.Holder cou = (CascadeOnUpdateTestCase.Holder)obj;
     ((CascadeOnUpdateTestCase.Atom)cou.child).name       = "updated";
     ((CascadeOnUpdateTestCase.Atom)cou.child).child.name = "updated";
     this._enclosing.Db().Store(cou);
 }
Exemple #2
0
 public void Visit(object obj)
 {
     CascadeOnUpdateTestCase.Holder cou  = (CascadeOnUpdateTestCase.Holder)obj;
     CascadeOnUpdateTestCase.Atom   atom = (CascadeOnUpdateTestCase.Atom)cou.child;
     Assert.AreEqual("updated", atom.name);
     Assert.AreNotEqual("updated", atom.child.name);
 }
		protected override void Store()
		{
			CascadeOnUpdateTestCase.Holder cou = new CascadeOnUpdateTestCase.Holder(new CascadeOnUpdateTestCase.Atom
				(new CascadeOnUpdateTestCase.Atom("storedChild"), "stored"));
			Db().Store(cou);
		}
Exemple #4
0
 protected override void Store()
 {
     CascadeOnUpdateTestCase.Holder cou = new CascadeOnUpdateTestCase.Holder(new CascadeOnUpdateTestCase.Atom
                                                                                 (new CascadeOnUpdateTestCase.Atom("storedChild"), "stored"));
     Db().Store(cou);
 }