Exemple #1
0
 /// <summary>
 /// 更新数据
 /// </summary>
 /// <param name="obj"></param>
 /// <returns>返回:ture 成功,false 失败</returns>
 public bool Update(TReqDoc obj)
 {
     return dal.Update(obj);
 }
Exemple #2
0
 /// <summary>
 /// 插入数据
 /// </summary>
 /// <param name="obj">对象</param>
 /// <returns>返回:该条数据的主键Id</returns>
 public int Insert(TReqDoc obj)
 {
     if (obj == null) throw new ArgumentNullException("obj");
     String stmtId = "TReqDoc.Insert";
     return SqlMapper.Instance().QueryForObject<int>(stmtId, obj);
 }
Exemple #3
0
 /// <summary>
 /// 插入数据
 /// </summary>
 /// <param name="obj">对象</param>
 /// <returns>返回:该条数据的主键Id</returns>
 public int Insert(TReqDoc obj)
 {
     return dal.Insert(obj);
 }
Exemple #4
0
 /// <summary>
 /// 更新数据
 /// </summary>
 /// <param name="obj"></param>
 /// <returns>返回:ture 成功,false 失败</returns>
 public bool Update(TReqDoc obj)
 {
     if (obj == null) throw new ArgumentNullException("obj");
     String stmtId = "TReqDoc.Update";
     int result = SqlMapper.Instance().QueryForObject<int>(stmtId, obj);
     return result > 0 ? true : false;
 }