Exemple #1
0
 /// <summary>
 /// Deletes the node with the specified id from the database.
 /// </summary>
 /// <param name="id">The id of the node to delete</param>
 public void DeleteNode(Guid id)
 {
     // Delete the node from the autocomplete database
     using (CassandraDriver autocompleteDriver = new CassandraDriver())
     {
         autocompleteDriver.DeleteNode(id.ToString());
     }
     // Delete the node from the graph database
     using (NeoDriver graphDriver = new NeoDriver())
     {
         graphDriver.DeleteNode(id);
     }
 }