/// <summary> /// 增加一条数据 /// </summary> public void Add(_Model.ResponseInfo model) { StringBuilder strSql = new StringBuilder(); strSql.Append("insert into ResponseInfo("); strSql.Append("PartNo,MatID,LineName,TimeStamp,CreateTime"); strSql.Append(") values ("); strSql.Append("'" + model.PartNo + "','" + model.MatID + "','" + model.LineName + "','" + model.TimeStamp + "','" + DateTime.Now + "'"); strSql.Append(") "); Console.WriteLine(strSql.ToString()); int count = DbHelperSql.ExecuteSql(strSql.ToString()); Console.WriteLine(count.ToString()); }
/// <summary> /// 增加一条数据 /// </summary> public void Add(_Model.ResponseInfo model) { dal.Add(model); }