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); }
public RepoBase(DbContext vygContext) { db = (VoyageContext)vygContext; }