Exemplo n.º 1
0
 public NorthWindUnitOfWork(string connectionString)
 {
     Customers = new CustomerRepository(connectionString);
     Details   = new OrderDetailsRepository(connectionString);
     Orders    = new OrdersRepository(connectionString);
     Products  = new ProductsRepository(connectionString);
     Suppliers = new SuppliersRepository(connectionString);
     Employess = new EmployeesRepository(connectionString);
     Users     = new UserRepository(connectionString);
 }
Exemplo n.º 2
0
        public NorthwindUnitOfWork(string connectionString)
        {
            Customers    = new CustomersRepository(connectionString);
            Orders       = new OrdersRepository(connectionString);
            OrderDetails = new OrderDetailsRepository(connectionString);
            Users        = new UserRepository(connectionString);
            Products     = new ProductsRepository(connectionString);
            Suppliers    = new SuppliersRepository(connectionString);

            Clientes     = new ClientesRepository(connectionString);
            Contratistas = new ContratistasRepository(connectionString);
            Contratos    = new ContratosRepository(connectionString);
            Lugares      = new LugaresRepository(connectionString);
            Servicios    = new ServiciosRepository(connectionString);
        }