Example #1
0
 /// <summary>
 /// 删除产品信息
 /// </summary>
 /// <param name="snNum"></param>
 /// <returns></returns>
 public int Delete(string snNum)
 {
     ProductEntity entity = new ProductEntity();
     entity.IsDelete = (int)EIsDelete.Deleted;
     entity.Where(a => a.SnNum == snNum);
     entity.IncludeIsDelete(true);
     int line = this.Product.Update(entity);
     if (line > 0)
     {
         CacheHelper.Remove(CacheKey.JOOSHOW_PRODUCT_CACHE);
     }
     return line;
 }