I have a regular linq query that is written as such:
Clients.Where (c => c.EmailReturnUndeliverable == false ||
c.ClientBadStanding_TF == false)
I would like to dynamically write the query as such:
Clients.Where ("EmailReturnUndeliverable = false Or ClientBadStanding_TF = false")
I have reviewed Scott G's article on Dynamic Linq and it looks like my syntax is correct.
However, I cannot get the 2nd query to run.
My setup:
VS 10 / ASP.NET App
Steps I have taken:
Anyone have any council on what I am missing or how to get the using statement to clear up?
In case if your CLients is a list, can you try
Clients.AsQueryable().Where ("EmailReturnUndeliverable = false Or ClientBadStanding_TF = false")
If I am not mistaken DynamicLibrary.cs has functions which can we applied to IQueryable