/// <summary>
        /// 添加微信发送失败数据
        /// </summary>
        /// <param name="model">The model.</param>
        /// <returns>System.Int32.</returns>
        public int AddUserWeChatError(weChatUserWechatErrorModel model)
        {
            string strSql = "INSERT INTO user_wechat_error(userid,title,shareText,createtime,errorType) values(@userid,@title,@shareText,@createtime,@errorType);select last_insert_rowid();";
            var    param  = new[] {
                new SQLiteParameter("@userid", model.userid),
                new SQLiteParameter("@title", model.title),
                new SQLiteParameter("@shareText", model.shareText),
                new SQLiteParameter("@createtime", model.createtime),
                new SQLiteParameter("@errorType", model.errorType)
            };

            return(DBHelper.ExecuteSql(strSql, param));
        }
Beispiel #2
0
 /// <summary>
 /// 添加微信发送失败数据
 /// </summary>
 /// <param name="model">The model.</param>
 /// <returns>System.Int32.</returns>
 public int AddUserWeChatError(weChatUserWechatErrorModel model)
 {
     return(dal.AddUserWeChatError(model));
 }