static void Main(string[] args) { CTX ctx = new CTX(); Expression <Func <Customer, bool> > expression = cust => ctx.Invoices.Any(customer => Customer.HasMatchingIds(customer, cust)); }
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); }
static void Main(string[] args) { CTX ctx = new CTX(); Expression <Func <Customer, bool> > expression = c => ctx.Invoice.Any(i => i.customerId == c.id); }