LINQ in Action roller

Dynamic conditions question

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...
Published Tuesday, February 20, 2007 10:19 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication