I am trying to create a query that has multiple where conditions. I searched through the forum and found Joe Albahari's PredicateBuilder class and I've been trying to utilize it with no success so far. Basically I have a base query: IQueryable<Contact> query = from c in ctx.Contact select c; Then I create the predicate: var predicate = PredicateBuilder.Make<Contact> ( c => c.LastName.Equals("Doe")); The error occurs here: foreach (Contact item in ctx.CreateQuery<Contact>(predicate))
Read More...