public AirlineUnitOfWork(AirlineContext context)
 {
     this.context = context;
     Airlines     = new RepositoryAirline(context);
     Country      = new RepositoryCountry(context);
     Pilot        = new RepositoryPilot(context);
     Flight       = new RepositoryFlight(context);
 }
示例#2
0
 public AirportUnitOfWork(AirportContext context)
 {
     this.context = context;
     Airplane     = new RepositoryAirplane(context);
     Passanger    = new RepositoryPassanger(context);
     Reservation  = new RepositoryReservation(context);
     Seat         = new RepositorySeat(context);
     Flight       = new RepositoryFlight(context);
 }