Exemple #1
0
 public DALUnitOfWork()
 {
     ctx             = new BusAutomation();
     bus             = new BusRepo(ctx);
     busExpedition   = new BusExpeditionRepo(ctx);
     driver          = new DriverRepo(ctx);
     host            = new HostRepo(ctx);
     person          = new PersonRepo(ctx);
     route           = new RouteRepo(ctx);
     seatInformation = new SeatInformationRepo(ctx);
     ticket          = new TicketRepo(ctx);
 }
 public RepoBase(DbContext gymCtx)
 {
     db = (BusAutomation)gymCtx;
 }