Example #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);
 }
Example #2
0
 public RepoBase(DbContext gymCtx)
 {
     db = (BusAutomation)gymCtx;
 }