コード例 #1
0
        static void Main(string[] args)
        {
            CTX ctx = new CTX();

            Expression <Func <Customer, bool> > expression = cust => ctx.Invoices.Any(customer => Customer.HasMatchingIds(customer, cust));
        }
コード例 #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);
 }
コード例 #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);
 }