Пример #1
0
 private void InsertBefore(NodeCache nodeCache)
 {
     Check(true);
     if (nodeCache != null)
     {
         Updates.Do(new Insert(null, nodeCache.value(), false, false, true, false, DbNode));
     }
 }
Пример #2
0
 // Used by ReadInnerXml(), ReadInnerText(), and set_Value()
 // Deletes all the child nodes and adds the nodeCache nodes, does nothing if nodeCache is null
 private void ReplaceChildren(NodeCache nodeCache)
 {
     if (nodeCache != null)
     {
         ANode[] nodes = EnumerateANodes(ANode.children()).ToArray();
         using (new Updates())
         {
             Updates.Do(new Delete(null, Seq.get(nodes, nodes.Length)));
             Updates.Do(new Insert(null, nodeCache.value(), false, true, false, false, DbNode));
         }
     }
 }
Пример #3
0
 private void InsertBefore(NodeCache nodeCache)
 {
     Check(true);
     if (nodeCache != null)
     {
         Updates.Do(new Insert(null, nodeCache.value(), false, false, true, false, DbNode));
     }
 }
Пример #4
0
 // Used by ReadInnerXml(), ReadInnerText(), and set_Value()
 // Deletes all the child nodes and adds the nodeCache nodes, does nothing if nodeCache is null
 private void ReplaceChildren(NodeCache nodeCache)
 {
     if (nodeCache != null)
     {
         ANode[] nodes = EnumerateANodes(ANode.children()).ToArray();
         using (new Updates())
         {
             Updates.Do(new Delete(null, Seq.get(nodes, nodes.Length)));
             Updates.Do(new Insert(null, nodeCache.value(), false, true, false, false, DbNode));
         }
     }
 }