コード例 #1
0
        public DALUnitOfWork()
        {
            vygCtx = new VoyageContext();

            BusExpeditionPocos   = new BusExpeditionRepo(vygCtx);
            BusPocos             = new BusRepo(vygCtx);
            BusTypePocos         = new BusTypeRepo(vygCtx);
            DriverPocos          = new DriverRepo(vygCtx);
            HostPocos            = new HostRepo(vygCtx);
            PersonPocos          = new PersonRepo(vygCtx);
            RoutePocos           = new RouteRepo(vygCtx);
            SeatInformationPocos = new SeatInformationRepo(vygCtx);
            TicketPocos          = new TicketRepo(vygCtx);
        }
コード例 #2
0
 public RepoBase(DbContext vygContext)
 {
     db = (VoyageContext)vygContext;
 }