public UnitOfWork() { _context = new SpxProductsContext(); }
public GenericRepository(SpxProductsContext context) { this.Context = context; this.DbSet = context.Set <TEntity>(); }