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