static void Main(string[] args) { UnitOfWork unit = new UnitOfWork(new LinQContext()); unit.customers.GetClientesConInvoicesPaginacion(3, 10); LinQContext context = new LinQContext(); context.Customers.Include(x => x.Invoices) .OrderBy(x => x.Name) .Skip((3 - 1) * 10) .Take(10) .ToList(); }
public UnitOfWork(LinQContext context) { this.context = context; customers = new CustomersRepositorio(this.context); }