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)
 {
 }
Ejemplo n.º 3
0
 public HistoricalDataRepository(StockMarketDbContext context)
     : base(context)
 {
 }
Ejemplo n.º 4
0
 public UserPortfolioRepository(StockMarketDbContext context)
     : base(context)
 {
 }
 public UserRepository(StockMarketDbContext context)
     : base(context)
 {
 }