I found these two excellent articles on how to write dynamic LINQ queries. Dynamic LINQ queries are generally used when we have a number of keywords to search the database for. A perfect example of this scenario would be Searching the database based on random number of fields with Or’s and And’s. These articles address them very well.
Here are the links -
Rock Thoughts - And's & Or's Together
C# 3.0 In a NutShell - Predicate Builder
Hope this Helps!
Happy Programming!!
Cheers!
0 Responses to "Dynamic Linq Queries"
Post a Comment