コード例 #1
0
        private static void HardCodeDelete()
        {
            AerospikeWriteClient c = new AerospikeWriteClient();

            c.Delete(Entities.Card, 4);
            c.Delete(Entities.Collection, 4444);
        }
コード例 #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);
     }
 }
コード例 #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);
     }
 }
コード例 #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);
     }
 }