Esempio n. 1
0
        public StockMarket2UnitofWork(string connectionString, string migrationAssemblyName)
        {
            _context = new StockMarketContext(connectionString, migrationAssemblyName);

            StockRepository    = new StockRepository(_context);
            Company2Repository = new Company2Repository(_context);
        }
Esempio n. 2
0
 public StockMarketUow(StockMarketContext stockMarketContext)
 {
     _stockMarketContext = stockMarketContext;
 }
 public UnitOfWork(string connectionString, string migrationAssemblyName)
 {
     context              = new StockMarketContext(connectionString, migrationAssemblyName);
     companyRepository    = new CompanyRepository(context);
     stockPriceRepository = new StockpriceRepository(context);
 }