public UnitOfWork(StockMarketDbContext context) { _context = context; Companies = new CompanyRepository(_context); HistoricalDatas = new HistoricalDataRepository(_context); Users = new UserRepository(_context); UserPortfolios = new UserPortfolioRepository(_context); }
public CompanyRepository(StockMarketDbContext context) : base(context) { }
public HistoricalDataRepository(StockMarketDbContext context) : base(context) { }
public UserPortfolioRepository(StockMarketDbContext context) : base(context) { }
public UserRepository(StockMarketDbContext context) : base(context) { }