Example #1
0
        private UnityOfWork()
        {
            _Context = new EmpresaTransporteDbContext();

            Buses = new BusRepository(_Context);

            Empleados = new EmpleadoRepository(_Context);

            LugaresViajes = new LugarViajeRepository(_Context);

            Servicios = new ServicioRepository(_Context);

            Ventas = new VentaRepository(_Context);
        }
 public ServicioRepository(EmpresaTransporteDbContext context)
 {
     _Context = context;
 }
 public VentaRepository(EmpresaTransporteDbContext context)
 {
     _Context = context;
 }
 public LugarViajeRepository(EmpresaTransporteDbContext context)
 {
     _Context = context;
 }
 public EmpleadoRepository(EmpresaTransporteDbContext context)
 {
     _Context = context;
 }