コード例 #1
0
ファイル: UnitOfWork.cs プロジェクト: Techman28/Piatnica
        //  private PiatnicaContext _dbContext= new PiatnicaContext();

        public UnitOfWork(PiatnicaContext db, IDelayRepository delayRepository, IEventHistoryRepository eventHistoryRepository, ILocationHistoryRepository locationHistoryRepository, IOrderRepository orderRepository, IOrderEntryRepository orderEntryRepository, IOrderStateRepository orderStateRepository, IVechicleRepository vechicleRepository, IDriverRepository driverRepository)
        {
            _dbContext                = db;
            DelayRepository           = delayRepository;
            EventHistoryRepository    = eventHistoryRepository;
            LocationHistoryRepository = locationHistoryRepository;
            OrderRepository           = orderRepository;
            OrderEntryRepository      = orderEntryRepository;
            OrderStateRepository      = orderStateRepository;
            VechicleRepository        = vechicleRepository;
            DriverRepository          = driverRepository;
        }
コード例 #2
0
 public VechicleController(IVechicleRepository repos) => _repos = repos;