public Repository2(IDbContext2 context, UnitOfWork2 ufw, int mid) { this.Context = context; this.DbSet = Context.Set <TEntity>(); this.MemberId = mid; this.UFW = ufw; }
public BLQdtAction(IDbContext2 context /*,ClsABM1 abm,*/ /*short id*/) : base( new ABMLib.DAL.LocalDB.UnitOfWork2/*<DBContext, DBContextHLog>*/ (new DBContext(), new DBContextHLog() //, //new System.Collections.Generic.Dictionary<string, IBaseRepository>() { //{"RepQdtAction", new RepQdtAction()}, //} ) /*abm,*//* id*/) { _Context = context; Initialize(); }
public PriceCalculationService(IWorkContext workContext, IDiscountService discountService, ICategoryService categoryService, IProductAttributeParser productAttributeParser, ShoppingCartSettings shoppingCartSettings, CatalogSettings catalogSettings, IDataProvider dataProvider, IDbContext2 dbContext) { this._workContext = workContext; this._discountService = discountService; this._categoryService = categoryService; this._productAttributeParser = productAttributeParser; this._shoppingCartSettings = shoppingCartSettings; this._catalogSettings = catalogSettings; _dataProvider = dataProvider; _dbContext = dbContext; }
/// <summary> /// Ctor /// </summary> /// <param name="cacheManager">Cache manager</param> /// <param name="specificationAttributeRepository">Specification attribute repository</param> /// <param name="specificationAttributeOptionRepository">Specification attribute option repository</param> /// <param name="productSpecificationAttributeRepository">Product specification attribute repository</param> /// <param name="eventPublisher">Event published</param> /// <param name="dataProvider">data Provider</param> public SpecificationAttributeService(ICacheManager cacheManager, IRepository <SpecificationAttribute> specificationAttributeRepository, IRepository2 <SpecificationAttributeOption> specificationAttributeOptionRepository, IRepository2 <ProductSpecificationAttribute> productSpecificationAttributeRepository, IEventPublisher eventPublisher, IDataProvider dataProvider, IDbContext2 dbContext) { _cacheManager = cacheManager; _specificationAttributeRepository = specificationAttributeRepository; _specificationAttributeOptionRepository = specificationAttributeOptionRepository; _productSpecificationAttributeRepository = productSpecificationAttributeRepository; _eventPublisher = eventPublisher; _dataProvider = dataProvider; _dbContext = dbContext; }
public UnitOfWork2(IDbContext2 context, IDbContext2 contextlog) { _Context = context; _ContextLog = contextlog; }
/// <summary> /// Ctor /// </summary> /// <param name="context">Object context</param> public EfRepository(IDbContext2 context) { this._context = context; }