Exemplo n.º 1
0
 public static void Insert(int idGoalOfMonth, int idDay)
 {
     DatabaseDao.Insert(ConstantValue.GoalOfDay, new List <string> {
         "IDGoalOfMonth", "idDay"
     }, new List <object> {
         idGoalOfMonth, idDay
     });
 }
Exemplo n.º 2
0
 public static void Delete(int id)
 {
     DatabaseDao.Delete(ConstantValue.GoalOfDay, new List <string> {
         "ID"
     }, new List <object> {
         id
     });
 }
Exemplo n.º 3
0
 public static void Update(int id)
 {
     DatabaseDao.Update(ConstantValue.Month, id, new List <string> {
         "LastSelected"
     }, new List <object> {
         DateTime.Now
     });
 }
Exemplo n.º 4
0
 public static void Update(int id)
 {
     DatabaseDao.Update(ConstantValue.GoalTime, id, new List <string> {
         "LastUpdate"
     }, new List <object> {
         DateTime.Now
     });
 }
Exemplo n.º 5
0
 public static void Insert(int idGoal, int idMonth)
 {
     DatabaseDao.Insert(ConstantValue.GoalOfMonth, new List <string> {
         "IDGoal", "IDMonth"
     }, new List <object> {
         idGoal, idMonth
     });
 }
Exemplo n.º 6
0
 public static void Insert(string name)
 {
     DatabaseDao.Insert(ConstantValue.Goal, new List <string> {
         "Name"
     }, new List <object> {
         name
     });
 }
Exemplo n.º 7
0
        public static void Delete(int id)
        {
            var resGoalOfDays = GoalOfDayDao.GetGoalOfDaysWithIDMonth(id);

            resGoalOfDays.ForEach(x => GoalOfDayDao.Delete(x.ID));
            DatabaseDao.Delete(ConstantValue.GoalOfMonth, new List <string> {
                "ID"
            }, new List <object> {
                id
            });
        }