public ProductsCatalogData() { this.context = new ProductsCatalogDbContext(); this.repositories = new Dictionary <Type, object>(); }
public GenericRepository(IProductsCatalogDbContext context, string name) { this.context = context; this.set = context.Set <T>(name); }