예제 #1
0
        public int AddClothesBrand()
        {
            ClothesBrand c = new ClothesBrand()
            {
                ClothesBrandName = "特步"
            };

            return(bll.AddClothesBrand(c));
        }
예제 #2
0
 /// <summary>
 /// 添加品牌
 /// </summary>
 /// <param name="c"></param>
 /// <returns></returns>
 public int AddClothesBrand(ClothesBrand c)
 {
     return(dal.AddClothesBrand(c));
 }
예제 #3
0
        /// <summary>
        /// 添加品牌
        /// </summary>
        /// <param name="c"></param>
        /// <returns></returns>
        public int AddClothesBrand(ClothesBrand c)
        {
            string sql = $"insert into ClothesBrand values('{c.ClothesBrandName}')";

            return(DapperHelper.Cud(sql));
        }