static void Main(string[] args)
        {
            CTX ctx = new CTX();

            Expression <Func <Customer, bool> > expression = cust => ctx.Invoices.Any(customer => Customer.HasMatchingIds(customer, cust));
        }
Esempio n. 2
0
 static void Main(string[] args)
 {
     CTX ctx = new CTX();
     Expression <Func <Customer, Customer, bool> > innerExperssion = (customer, c) => customer.customerId == c.id;
     Expression <Func <Customer, bool> >           expression      = c => ctx.Invoice.Any(customer => customer.customerId == c.id);
 }
Esempio n. 3
0
 static void Main(string[] args)
 {
     CTX ctx = new CTX();
     Expression <Func <Customer, bool> > expression = c => ctx.Invoice.Any(i => i.customerId == c.id);
 }