Expression.Call and Count
问题 I'm looking for a way to do following dynamically: var q = context.Subscription .Include("Client") .Include("Invoices") Where(s=>s.Client.Invoices.Count(i=>i.InvoiceID == SomeInt) > 0); I would like to build expression dynamically for the left side: Expression left = s => s.Client.Invoices.Count(i => i.InvoiceID == iSomeVar); //! Expression right = Expression.Constant(0); var binary = Expression.GreaterThan(left, right); Thanks! UPDATED NOTES: Please note: The end result must be Expression