コード例 #1
0
		protected override void Store()
		{
			CascadedDeleteUpdate.ParentItem parentItem1 = new CascadedDeleteUpdate.ParentItem
				();
			CascadedDeleteUpdate.ParentItem parentItem2 = new CascadedDeleteUpdate.ParentItem
				();
			CascadedDeleteUpdate.ChildItem child = new CascadedDeleteUpdate.ChildItem();
			child.parent1 = parentItem1;
			child.parent2 = parentItem2;
			parentItem1.child = child;
			parentItem2.child = child;
			Db().Store(parentItem1);
		}
コード例 #2
0
 protected override void Store()
 {
     CascadedDeleteUpdate.ParentItem parentItem1 = new CascadedDeleteUpdate.ParentItem
                                                       ();
     CascadedDeleteUpdate.ParentItem parentItem2 = new CascadedDeleteUpdate.ParentItem
                                                       ();
     CascadedDeleteUpdate.ChildItem child = new CascadedDeleteUpdate.ChildItem();
     child.parent1     = parentItem1;
     child.parent2     = parentItem2;
     parentItem1.child = child;
     parentItem2.child = child;
     Db().Store(parentItem1);
 }