コード例 #1
0
 public static void Insert(int idGoalOfMonth, int idDay)
 {
     DatabaseDao.Insert(ConstantValue.GoalOfDay, new List <string> {
         "IDGoalOfMonth", "idDay"
     }, new List <object> {
         idGoalOfMonth, idDay
     });
 }
コード例 #2
0
 public static void Delete(int id)
 {
     DatabaseDao.Delete(ConstantValue.GoalOfDay, new List <string> {
         "ID"
     }, new List <object> {
         id
     });
 }
コード例 #3
0
ファイル: MonthDao.cs プロジェクト: taihuynh116/SelfJournal
 public static void Update(int id)
 {
     DatabaseDao.Update(ConstantValue.Month, id, new List <string> {
         "LastSelected"
     }, new List <object> {
         DateTime.Now
     });
 }
コード例 #4
0
 public static void Update(int id)
 {
     DatabaseDao.Update(ConstantValue.GoalTime, id, new List <string> {
         "LastUpdate"
     }, new List <object> {
         DateTime.Now
     });
 }
コード例 #5
0
 public static void Insert(int idGoal, int idMonth)
 {
     DatabaseDao.Insert(ConstantValue.GoalOfMonth, new List <string> {
         "IDGoal", "IDMonth"
     }, new List <object> {
         idGoal, idMonth
     });
 }
コード例 #6
0
 public static void Insert(string name)
 {
     DatabaseDao.Insert(ConstantValue.Goal, new List <string> {
         "Name"
     }, new List <object> {
         name
     });
 }
コード例 #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
            });
        }