private static void HardCodeDelete() { AerospikeWriteClient c = new AerospikeWriteClient(); c.Delete(Entities.Card, 4); c.Delete(Entities.Collection, 4444); }
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); } }
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); } }
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); } }