Ejemplo n.º 1
0
 public static void DeleteUnusedTasks(SQLiteDatabase db)
 {
     try
     {
         db.Delete("Tasks", "taskStatus=3");
     }
     catch (Exception fail)
     {
         throw new FSSQLiteException("An error occurred when trying to delete a task.");
     }
 }
Ejemplo n.º 2
0
 public static void Delete(string id, SQLiteDatabase db)
 {
     try
     {
         bool succ = db.Delete("Books", String.Format("id={0}", id));
         if (!succ)
         {
             throw new Exception();
         }
     }
     catch
     {
         throw new FSSQLiteException("An unexpected error occured when trying to delete a book.");
     }
 }