Example #1
0
        /// <summary>
        /// 修改购物车商品
        /// </summary>
        /// <param name="num"></param>
        /// <returns></returns>
        public int EditShopping(int sum, int id)
        {
            string sql = $"update Shopping set ShopSum={sum} where ShopId={id}";

            return(db.ExecuteNonQuery(sql));
        }
Example #2
0
        public int AddGoodsEvaluate(GoodsAllModel good)
        {
            string sql = $"insert into Evaluate values('{good.EvaTime}','{good.EvaSay}','{good.CommNum}','{good.UserNum}','{good.EvaNum}')";

            return(_db.ExecuteNonQuery(sql));
        }