public void Remove() { var cmd = new SqlCommand("DELETE FROM rohbot.notifications WHERE devicetoken=:devicetoken AND userid=:userid"); cmd["devicetoken"] = DeviceToken; cmd["userid"] = UserId; cmd.ExecuteNonQuery(); }
public void Save() { var cmd = new SqlCommand("UPDATE rohbot.notifications SET regex=:regex WHERE id=:id"); cmd["id"] = Id; cmd["regex"] = Regex.ToString(); cmd.ExecuteNonQuery(); }