您目前尚未登陆,请选择【登陆】或【注册
首页->电子商务->MyShop网络商城源码(mvc开发)>>BLL/Product.cs>>代码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:MyShop网络商城源码(mvc开发)


当前文件路径:MyShop/BLL/Product.cs 文件类型
普通视图
		            
1using System; 2using System.Collections.Generic; 3using System.Data; 4using MyShop.Model; 5using MyShop.IDAL; 6using MyShop.DALFactory; 7 8namespace MyShop.BLL 9{ 10 public class Product 11 { 12 private IProduct dal = DataAccess.CreateProduct(); 13 private ConfigInfo configInfo = new ConfigInfo(); 14 private string tableName = "Ljh_Products"; 15 private int _id; 16 17 public Product() 18 { 19 if (!string.IsNullOrEmpty(configInfo.TablePrefix.Trim())) 20 tableName = configInfo.TablePrefix + "Products"; 21 } 22 23 public Product(int id) 24 { 25 if (!string.IsNullOrEmpty(configInfo.TablePrefix.Trim())) 26 tableName = configInfo.TablePrefix + "Products"; 27 this._id = id; 28 29 } 30 31 IProduct member 103 104 common 291 292 以下过程要用Product product = new Product(id)实例化后才能进行调用