Beispiel #1
0
        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();
        }
Beispiel #2
0
 public UnitOfWork(LinQContext context)
 {
     this.context = context;
     customers    = new CustomersRepositorio(this.context);
 }