📄 productbll.cs
字号:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
using DAL;
namespace BLL.Goods
{
public class ProductBll
{
DAL.Goods.ProductDal productdalshow = new DAL.Goods.ProductDal();
#region 查询所有商品ID
/// <summary>
/// 查询所有商品ID
/// </summary>
/// <returns>返回商品编号的数据集</returns>
public List<Model.Goods.ProductModel> SelectProductID()
{
return productdalshow.SelectProductID();
}
#endregion
#region 通过商品ID查询商品信息
public List<Model.Goods.ProductModel> SelectProductByID(string productid)
{
return productdalshow.SelectProductByID(productid);
}
#endregion
//#region 通过商品ID保存商品信息
///// <summary>
///// 通过商品ID保存商品信息
///// </summary>
///// <param name="productid">商品ID</param>
///// <returns>返回保存商品信息的数据集</returns>
//public Model.Goods.ProductModel product(string productid)
//{
// return productdalshow.product(productid);
//}
//#endregion
#region 查询商品品牌是否存在
/// <summary>
/// 查询商品品牌是否存在
/// </summary>
/// <returns></returns>
public bool SelectBrand(int brand_ID)
{
return productdalshow.SelectBrand(brand_ID);
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -