예제 #1
0
        public void insert(Tarea user)
        {
            try
            {
                db = new AccessData();
                db.openConection();
                db.insertTask(user);
            }
            catch (Exception a)
            {

            }
            finally
            {
                db.closeConection();
            }
        }
예제 #2
0
 public DataSet select(string id)
 {
     try
     {
         db = new AccessData();
         db.openConection();
         return db.select("select * from tarea where usuario_id ='" + id + "'");
     }
     catch (Exception a)
     {
         return null;
     }
     finally
     {
         db.closeConection();
     }
 }
예제 #3
0
        public void delete(string id)
        {
            try
            {
                db = new AccessData();
                db.openConection();
                db.deleteTask("delete from tarea where tarea_id ='" + id + "'");
            }
            catch (Exception a)
            {

            }
            finally
            {
                db.closeConection();
            }
        }