public UnitOfWork(DbContext context) { this.Context = context; Product = new ProductRepo(Context); TypeFilter = new TypeFilterRepo(Context); SubCategory = new SubCategoryRepo(Context); TechSpecFilter = new TechSpecFilterRepo(Context); Property = new PropertyRepo(Context); PropertyValue = new PropertyValueRepo(Context); Category = new CategoryRepo(Context); }
public UnitOfWork(DbContext context) { this.Context = context; consumer = new ConsumerRepo(this.Context); product = new ProductRepo(this.Context); category = new CategoryRepo(this.Context); subCategory = new SubCategoryRepo(this.Context); manufacture = new ManufactureRepo(this.Context); propertyvalue = new PropertyValueRepo(this.Context); property = new PropertyRepo(this.Context); specFilter = new SpecFilterRepo(this.Context); typeFilter = new TypeFilterRepo(this.Context); //add attrs }