public void Dispose(bool disposing) { if (disposing) { category = null; readItem = null; } }
public ProductController(IProductDAL productdal, IProductCommentDAL commentdal, IProductPictureDAL picturedal, IProductTechnicPropertyDAL propertyvaluedal, IPropertyDAL propertdal, IProductModelDAL modeldal, IMakeDAL makedal, ICategoryDAL categorydal) { ProductDAL = productdal; CommentDAL = commentdal; PictureDAL = picturedal; PropertyValueDAL = propertyvaluedal; PropertyDAL = propertdal; ModelDAL = modeldal; MakeDAL = makedal; CategoryDAL = categorydal; }
public ProductManager(IUnitOfWork uow, IProductDAL productDAL, IProductDemandDAL productDemandDAL, IProductImageDAL productImageDAL, IBrandDAL brandDAL, IColorDAL colorDAL, ICategoryDAL categoryDAL, IDemandTypeDAL demandTypeDAL, IOptions <FileUploadSettings> fileUploadSettings, IProductColorDAL productColorDAL) { _uow = uow; _productDAL = productDAL; _productDemandDAL = productDemandDAL; _productColorDAL = productColorDAL; _productImageDAL = productImageDAL; _brandDAL = brandDAL; _colorDAL = colorDAL; _categoryDAL = categoryDAL; _demandTypeDAL = demandTypeDAL; _fileUploadSettings = fileUploadSettings.Value; }
public DeliveryManager( IDeliveryDAL deliveryDAL, ICartDAL cartDAL, IProductDAL productDAL, ICategoryDAL categoryDAL, ICartProductDAL cartProductDAL ) { _cartDAL = cartDAL; _productDAL = productDAL; _categoryDAL = categoryDAL; _deliveryDAL = deliveryDAL; _cartProductDAL = cartProductDAL; }
/// <summary> /// Khởi tạo tính năng tác nghiệp (Hàm này phải được gọi nếu muốn sử dụng các tính năng của lớp) /// </summary> /// <param name="dbType"></param> /// <param name="connectionString"></param> public static void Init(DatabaseTypes dbType, string connectionString) { switch (dbType) { case DatabaseTypes.SQLServer: CountryDB = new DataLayers.SQLServer.CountryDAL(connectionString); CityDB = new DataLayers.SQLServer.CityDAL(connectionString); SupplierDB = new DataLayers.SQLServer.SupplierDAL(connectionString); CategoryDB = new DataLayers.SQLServer.CategoryDAL(connectionString); CustomerDB = new DataLayers.SQLServer.CustomerDAL(connectionString); EmployeeDB = new DataLayers.SQLServer.EmployeeDAL(connectionString); ShipperDB = new DataLayers.SQLServer.ShipperDAL(connectionString); break; default: throw new Exception("Database Type is not Supported"); } }
public CartManager ( ICartDAL cartDAL, IProductDAL productDAL, ICouponDAL couponDAL, ICampaignDAL campaignDAL, ICategoryDAL categoryDAL, IDeliveryDAL deliveryDAL, ICartProductDAL cartProductDAL ) { _cartDAL = cartDAL; _productDAL = productDAL; _couponDAL = couponDAL; _campaignDAL = campaignDAL; _categoryDAL = categoryDAL; _deliveryDAL = deliveryDAL; _cartProductDAL = cartProductDAL; }
public CategoryManager(ICategoryDAL categoryDAL) { this._categoryDAL = categoryDAL; }
public CategoryManager(ICategoryDAL categoryDAL) { _categoryDal = categoryDAL; }
/// <summary> /// The MVC framework with the assistance of Ninject, automatically passes in a FilmDAL. /// </summary> /// <param name="dal"></param> public FilmController(IFilmDAL filmDal, ICategoryDAL categoryDal) { this.filmDal = filmDal; this.categoryDal = categoryDal; }
public CategoryManager(ICategoryDAL categorydal) { _categorydal = categorydal; }
public HomeController(IProductDAL productDal, ICategoryDAL categoryDal) { this.proDal = productDal; this.catDal = categoryDal; }
public CategoryService(ICategoryDAL category) { _categoryDAL = category; }
public CategoryManager(IGenericDAL <Category> genericDAL, ICategoryDAL categoryDAL) : base(genericDAL) { _genericDAL = genericDAL; _categoryDAL = categoryDAL; }
public CategoryManager(ICategoryDAL CategoryDal) { _ICategoryDAL = CategoryDal; }
public CourseController(ICourseDAL crsDal, ICategoryDAL catDAL, ICourseCurriculaDAL currDAL, IUserDAL db, IHttpContextAccessor httpContext) : base(db, httpContext) { _courseDAL = (CourseDAL)crsDal; _catDAL = (CategoryDAL)catDAL; _currDAL = (CourseCurriculaDAL)currDAL; }
public CategoryManager(ICategoryDAL _categoryDal) { this._categoryDal = _categoryDal; }
public CategoryDSL(ICategoryDAL categoryDAL, IMapper mapper) { this._categoryDAL = categoryDAL; _mapper = mapper; }
public CategoryService(ICategoryDAL category) { _dal = category; }
public UnityOfWork(Datasource datasource, ICategoryDAL categoryDal, IReadItemDAL readItemDal) { this.Datasource = datasource; this.Category = categoryDal; this.ReadItem = readItem; }
public CategoryService(ICategoryDAL dal) { _dal = dal; }
public CategoryManager(ICategoryDAL categoryDAL, ILogger <CategoryManager> logger) //, IHttpContextAccessor http) { _categoryDAL = categoryDAL; this.logger = logger; //this.http = http; }
public CategoryBLL() { _category = new CategoryDAL(); }
public HomeController(IProductDAL _productDAL, IUserDAL _userDAL, ICategoryDAL _categoryDAL) { productDAL = _productDAL; userDAL = _userDAL; categoryDAL = _categoryDAL; }
public MarvelManageBLL() { CategoryManager = new CategoryManagerDAC(); SliderManager = new SliderManagerDAC(); }
public PropertyController(IPropertyDAL propertydal, ICategoryDAL categorydal) { PropertyDAL = propertydal; CategoryDAL = categorydal; }
public CategoryController(ICategoryDAL categorydal, IProductDAL productdal, IMakeDAL makedal) { CategoryDAL = categorydal; ProductDAL = productdal; MakeDAL = makedal; }
public CategoryController(ICategoryDAL categorydal, IMakeDAL makedal) { CategoryDAL = categorydal; MakeDAL = makedal; }
public CategoryManager(IUnitOfWork uow, ICategoryDAL categoryDAL) { _uow = uow; _categoryDAL = categoryDAL; }
public CategoryBLL(ICategoryDAL stub) { _category = stub; }
public CategoryController(ICategoryDAL dal) { this.dal = dal; }
public CategoryService(ICategoryDAL CategoryDAL) { _CategoryDAL = CategoryDAL; }
public ProductController(IProductDAL productdal, IProductModelDAL productmodeldal, ICategoryDAL categorydal) { ProductDAL = productdal; ProductModelDAL = productmodeldal; CategoryDAL = categorydal; }
public CategoryService(ICategoryDAL categoryDAL) { serviceDAL = categoryDAL; }
public UnityOfWork(Datasource datasource, ICategoryDAL categoryDal, IReadItemDAL readItemDal) { this.Datasource = datasource; this.Category = categoryDal; this.ReadItem = readItem; }