public UnitOfWork(JooleDatabaseEntities2 context, CategoryRepo categoryRepo, SubCategoryRepo subCategoryRepo, PropertyRepo propertyRepo, ProductRepo productRepo, TechSpecRepo techSpecRepo, TechSpecFilterRepo techSpecFilterRepo) { this.context = context; this.categoryRepo = categoryRepo; this.subCategoryRepo = subCategoryRepo; this.productRepo = productRepo; this.propertyRepo = propertyRepo; this.techSpecFilterRepo = techSpecFilterRepo; this.techSpecRepo = techSpecRepo; }
public TechSpecFilterRepo(JooleDatabaseEntities2 context) : base(context) { }
public SubCategoryRepo(JooleDatabaseEntities2 context) : base(context) { }
public ProductRepo(JooleDatabaseEntities2 context) : base(context) { }
public Repository(JooleDatabaseEntities2 context) { //JooleDB = context.Init(); this._DbContext = context; entities = _DbContext.Set <T>(); }
public PropertyRepo(JooleDatabaseEntities2 context) : base(context) { }
public Repository() { JooleDB = context.Init(); entities = JooleDB.Set <T>(); }
public Context() { context = new JooleDatabaseEntities2(); }