public void Add <T>(string key, T value)
 {
     stDao.Save <T>(key, value);
 }
Exemple #2
0
 public bool Save(string key, Student student)
 {
     return(studentDao.Save(key, student));
 }
Exemple #3
0
        /// <summary>
        /// 增加年级
        /// </summary>
        /// <param name="gradeId"></param>
        /// <param name="gradeName"></param>
        /// <returns></returns>
        public int AddGrade(string gradeId, string gradeName)
        {
            string sql = string.Format("insert into grade([GradeId], [GradeName]) values('{0}', '{1}')", gradeId, gradeName);

            return(dao.Save(sql));
        }