public UnitOfWork(ExchangeRateBotContext context, IGenericRepository <User> userRepository, IGenericRepository <UserCurrency> userCurrencyRepository) { this.context = context; UserRepository = userRepository; UserCurrencyRepository = userCurrencyRepository; }
public GenericRepository(ExchangeRateBotContext context) { this.context = context; dbSet = context.Set <TEntity>(); }