public void Add <T>(string key, T value) { stDao.Save <T>(key, value); }
public bool Save(string key, Student student) { return(studentDao.Save(key, student)); }
/// <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)); }