public UnitOfWork(NicheShackContext context) { this.context = context; Categories = new CategoryRepository(context); ProductReviews = new ProductReviewRepository(context); Lists = new ListRepository(context); ProductOrders = new ProductOrderRepository(context); // Generic repositories Products = new Repository <Product>(context); ProductMedia = new Repository <ProductMedia>(context); ProductContent = new Repository <ProductContent>(context); PricePoints = new Repository <ProductPricePoint>(context); RefreshTokens = new Repository <RefreshToken>(context); Collaborators = new Repository <ListCollaborator>(context); Customers = new Repository <Customer>(context); ListProducts = new Repository <ListProduct>(context); Media = new Repository <Media>(context); Notifications = new Repository <Notification>(context); NotificationText = new Repository <NotificationText>(context); Pages = new Repository <Page>(context); OrderProducts = new Repository <OrderProduct>(context); ProductKeywords = new Repository <ProductKeyword>(context); Keywords = new Repository <Keyword>(context); KeywordSearchVolumes = new Repository <KeywordSearchVolume>(context); ProductFilters = new Repository <ProductFilter>(context); Niches = new Repository <Niche>(context); PageReferenceItems = new Repository <PageReferenceItem>(context); }
public UnitOfWork(NicheShackContext context) { this.context = context; Categories = new CategoryRepository(context); Products = new ProductRepository(context); ProductReviews = new ProductReviewRepository(context); Lists = new ListRepository(context); ProductOrders = new ProductOrderRepository(context); // Generic repositories Media = new Repository <ProductMedia>(context); ProductContent = new Repository <ProductContent>(context); PricePoints = new Repository <ProductPricePoint>(context); RefreshTokens = new Repository <RefreshToken>(context); Collaborators = new Repository <ListCollaborator>(context); Customers = new Repository <Customer>(context); ListProducts = new Repository <ListProduct>(context); }