예제 #1
0
 /// <summary>
 /// 根据主键ID更新一条记录
 /// </summary>
 /// <param name="model">更新后的实体</param>
 /// <returns>执行结果受影响行数</returns>
 public int Update(Articel_Words model)
 {
     return(_dao.Update(model));
 }
예제 #2
0
 public bool Add(Articel_Words model)
 {
     return(dal.Add(model) > 0);
 }
예제 #3
0
 /// <summary>
 /// 向数据库中添加一条记录
 /// </summary>
 /// <param name="model">要添加的实体</param>
 /// <returns>插入数据的ID</returns>
 public int Insert(Articel_Words model)
 {
     return(_dao.Insert(model));
 }