Ejemplo n.º 1
0
        private static void HardCodeDelete()
        {
            AerospikeWriteClient c = new AerospikeWriteClient();

            c.Delete(Entities.Card, 4);
            c.Delete(Entities.Collection, 4444);
        }
Ejemplo n.º 2
0
 public Collection DeleteCollection(int id)
 {
     try
     {
         using var queryClient = new AerospikeQueryClient();
         using var writeClient = new AerospikeWriteClient();
         var collection = queryClient.GetCollectionInfo(id);
         writeClient.Delete(Entities.Collection, id);
         return(collection);
     }
     catch (DatabaseException e)
     {
         throw new GraphQlException(e.Message);
     }
 }
Ejemplo n.º 3
0
 public Card DeleteCard(int id)
 {
     try
     {
         using var queryClient = new AerospikeQueryClient();
         using var writeClient = new AerospikeWriteClient();
         var card = queryClient.GetCard(id);
         writeClient.Delete(Entities.Card, id);
         return(card);
     }
     catch (DatabaseException e)
     {
         throw new GraphQlException(e.Message);
     }
 }
Ejemplo n.º 4
0
 public User DeleteUser(int id)
 {
     try
     {
         using var queryClient = new AerospikeQueryClient();
         using var writeClient = new AerospikeWriteClient();
         var user = queryClient.GetUserInfo(id);
         writeClient.Delete(Entities.User, id);
         return(user);
     }
     catch (DatabaseException e)
     {
         throw new GraphQlException(e.Message);
     }
 }