public GetProductQueryHandler(IProductDal productDal) { _productDal = productDal; }
IProductDal _productDal; //ProductManager çağırıldığı anda Constructor IPorductDal referansı istiyor neden ? Metodun yanında açıklandı public ProductManager(IProductDal productDal) { _productDal = productDal; }
public ProductManager(IProductDal productDal, ICategoryService categoryService) {//Başka bir dal enjekte edemezsin bu kısıma!! _productDal = productDal; _categoryService = categoryService; }
public ProductManager(IProductDal productDal, IMapper mapper) { _productDal = productDal; _mapper = mapper; }
public ProductManager(IProductDal productDal, ICategoryDal categoryDal) { _productDal = productDal; }
public GetProductsQueryHandler(IProductDal productDal, IMessageBrokerHelper messageBrokerHelper) { _productDal = productDal; _messageBrokerHelper = messageBrokerHelper; }
public ProductManager(IProductDal productDal, ICategoryService categoryService) //erişim alternatifi ver inmemory olabilir enttyframework olabilir. { _productDal = productDal; _categoryService = categoryService; }
public ProductManager(IProductDal productDal, ILogManager logManager) { _productDal = productDal; _logManager = logManager; }
public ProductManager(IGenericDal <Product> genericDal, IProductDal productDal) : base(genericDal) { _productDal = productDal; }
public CarManager(IProductDal productDal) { _productDal = productDal; }
public ProductManager(IProductDal productDal, ICategoryService categoryService) //productmanager bir yerde newlendiği zaman bana bir tane productDal ver. { _productDal = productDal; _categoryService = categoryService; }
public ProductDeleteCommandHandler(IProductDal productDal) { _productDal = productDal; }
public ProductManager(IProductDal iProductDal, ICategoryService categoryService) //artık veri erişimim değişirse ctor kullandığım için patlamıycam { _iProductDal = iProductDal; _categoryService = categoryService; }
public ProductManager(IProductDal productDal, IBackgroundWorker backgroundWorker, IMailService mailService) { _productDal = productDal; _backgroundWorker = backgroundWorker; _mailService = mailService; }
public GetProductsByIdQueryHandler(IProductDal productDal, IMapper mapper) { _productDal = productDal; _mapper = mapper; }
public ProductManager(IProductDal productDal, ICategoryService categoryService) { _productDal = productDal; // Dependency Injection for letter D(Dependency Inversion) of SOLID principles _categoryService = categoryService; }
public ProductManager(IProductDal _productDal) => productDal = _productDal;
public ProductManager(IProductDal productDal) { this.productDal = productDal; }
public ProductManager(IProductDal iProductDal, ICategoryService iCategoryService) { _productDal = iProductDal; _categoryService = iCategoryService; }
public ProductManager(IProductDal productDal) //construction tanımlıyoruz.Bu şu demek. ProductManager newlendiğinde IProductDal türünde { //productDal nesnesi ver.Bu sayede entityframework ya da nhibernate kodu görülmez. // ikisini de kullanabilirsin. _productDal = productDal; }
public ProductsService(IProductDal productDal) { _productDal = productDal; }
public ProductsController(IProductDal productDal) { _productDal = productDal; }
public ProductManager(IProductDal _productDal) { this._productDal = _productDal; }
public CategoryManager(ICategoryDal categoryDal, ISubCategoryDal subCategoryDal, IProductDal productDal) { _categoryDal = categoryDal; _subCategoryDal = subCategoryDal; _productDal = productDal; }
public ProductManager(IProductDal product) { _product = product; }
public ProductManager(IProductDal @object) { Object = @object; }
public ProductManager(IProductDal productDal) //efproduct dal gelir, çünkü efproduct dal da bir IProductDal { _productDal = productDal; }
public ProductManager(IProductDal productDal, ICategoryService categoryService) { _productDal = productDal; _categoryService = categoryService; }
public ProductManager(IProductDal productdal) //Ben ProductManageri newlediğimde bana bir productdal ver demek. { _productDal = productdal; }
public ProductManager(IProductDal productDal) { _productDal = productDal; }
public ProductManager(IProductDal productDal, IEntityDal <Product> entityDal, IMapper mapper) : base(productDal, entityDal.GetPrimaryKeyMember(), mapper) { _productDal = productDal; _entityDal = entityDal; _mapper = mapper; }