public UnitOfWork(ProsumerInfoContext context) { _context = context; Addresses = new AddressRepository(_context); ExpectedDatas = new ExpectedDataRepository(_context); SmartMeterDatas = new SmartMeterDataRepository(_context); Prosumers = new ProsumerRepository(_context); }
public UnitOfWork(ProsumerInfoContext context) { Context = context; ProsumerRepository = new ProsumerRepository(context); IdentityRepository = new IdentityRepository(context); }