Example #1
0
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public bool Add(Model.ExceptionInfo model)
        {
            StringBuilder strSql = new StringBuilder();

            strSql.Append("insert into exceptionInfo(");
            strSql.Append("spiderName,exceptionContent)");
            strSql.Append(" values (");
            string values = "'" + model.spidername + "','" + model.exceptioncontent + "')";

            strSql.Append(values);

            int rows = mshelper.InsertSQl(strSql.ToString());

            if (rows > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Example #2
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public bool Add(Model.ExceptionInfo model)
 {
     return(dal.Add(model));
 }