⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 productselectbll.cs

📁 c#三层架构项目开发的全过程
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using DAL;
using Model;
namespace BLL.Goods
{
  public class ProductSelectBll
    {
        #region 商品表查询,BLL层构造函数
      DAL.Goods.ProductSelectDal ProductSelectShow;
        public ProductSelectBll()
        {
            ProductSelectShow = new DAL.Goods.ProductSelectDal();
        }
        #endregion

        #region 商品表查询
        public List<Model.Goods.ProductModel> GetProduct()
        {
            return ProductSelectShow.GetProduct();
        }
        #endregion

        #region 商品删除
        public int ProductDelete(string product_id)
        {
            string com = "DeleteProduct";
            SqlParameter id = new SqlParameter("@Product_id", SqlDbType.VarChar, 10);
            id.Value = product_id;

            return SqlHelper.ExecuteNonQuery(SqlHelper.conStr, CommandType.StoredProcedure, com, new SqlParameter[] { id });
        }
        #endregion
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -