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