/// <summary> /// 增加一条数据 /// </summary> public void Add(SpecialVote model) { using (DBHelper db = DBHelper.Create()) { db.Insert <SpecialVote>(model); } }
/// <summary> /// 更新一条数据 /// </summary> public bool Update(SpecialVote model) { using (DBHelper db = DBHelper.Create()) { db.Update <SpecialVote>(model); return(true); } }