/// <summary> /// 构造函数,必须传入数据库连接参数 /// </summary> /// <param name="entity">数据库连接参数</param> public DataTransferBLL(LiveEntities entity) : base(entity) { oProductBLL = new ProductBLL(entity); oGeneralBLL = new GeneralBLL(entity); }
/// <summary> /// 构造函数 /// </summary> public ProductController() { productBLL = new ProductBLL(dbEntity); dataTransferBLL = new DataTransferBLL(dbEntity); }