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