public UnitOfWork() { _context = new ECommerceDemoContext(); ProudctRepositry = new GenericRepository <Product>(_context); ProudctCategoryRepositry = new GenericRepository <ProductCategory>(_context); ProudctAttributeRepositry = new GenericRepository <ProductAttribute>(_context); ProudctAttributeLookupRepositry = new GenericRepository <ProductAttributeLookup>(_context); }
public GenericRepository(ECommerceDemoContext context) { this.context = context; this.dbSet = context.Set <T>(); }
public ProductCategoryRepository(ECommerceDemoContext context) { _context = context; }
public BaseRepository(ECommerceDemoContext context) { _context = context; }
public ProductRepository(ECommerceDemoContext context) : base(context) { _context = context; }