Exemplo n.º 1
0
 private void InsertBefore(NodeCache nodeCache)
 {
     Check(true);
     if (nodeCache != null)
     {
         Updates.Do(new Insert(null, nodeCache.value(), false, false, true, false, DbNode));
     }
 }
Exemplo n.º 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));
         }
     }
 }
Exemplo n.º 3
0
 private void InsertBefore(NodeCache nodeCache)
 {
     Check(true);
     if (nodeCache != null)
     {
         Updates.Do(new Insert(null, nodeCache.value(), false, false, true, false, DbNode));
     }
 }
Exemplo n.º 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));
         }
     }
 }