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;
 }
Example #2
0
 public TechSpecFilterRepo(JooleDatabaseEntities2 context) : base(context)
 {
 }
 public SubCategoryRepo(JooleDatabaseEntities2 context) : base(context)
 {
 }
 public ProductRepo(JooleDatabaseEntities2 context) : base(context)
 {
 }
Example #5
0
 public Repository(JooleDatabaseEntities2 context)
 {
     //JooleDB = context.Init();
     this._DbContext = context;
     entities        = _DbContext.Set <T>();
 }
Example #6
0
 public PropertyRepo(JooleDatabaseEntities2 context) : base(context)
 {
 }
 public Repository()
 {
     JooleDB  = context.Init();
     entities = JooleDB.Set <T>();
 }
Example #8
0
 public Context()
 {
     context = new JooleDatabaseEntities2();
 }