예제 #1
0
 public override void SetChildAt(NeoDatis.Btree.IBTreeNode node, int childIndex, int
                                 indexDestination, bool throwExceptionIfDoesNotExist)
 {
     NeoDatis.Odb.OID childOid = (NeoDatis.Odb.OID)node.GetChildIdAt(childIndex, throwExceptionIfDoesNotExist
                                                                     );
     childrenOids[indexDestination] = childOid;
     if (childOid != null)
     {
         // The parent of the child has changed
         NeoDatis.Btree.IBTreeNode child = btree.GetPersister().LoadNodeById(childOid);
         child.SetParent(this);
         btree.GetPersister().SaveNode(child);
     }
 }