示例#1
0
 public static void Delete(int id)
 {
     DatabaseDao.Delete(ConstantValue.GoalOfDay, new List <string> {
         "ID"
     }, new List <object> {
         id
     });
 }
示例#2
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
            });
        }