Solved

How would I make a "dynamic" LINQ Statement

Posted on 2009-06-30
2
323 Views
Last Modified: 2013-11-11
I want to be able to generate a LINQ statement dynamically, What is the suggested approach for this? A short example would be helpful. For example, the columns that I would search in my WHERE clause needs to be dynamic.

Thanks.
0
Comment
Question by:bryan_z
2 Comments
 
LVL 21

Accepted Solution

by:
naspinski earned 125 total points
ID: 24747459
0
 

Author Closing Comment

by:bryan_z
ID: 31598428
Well now, that was just damn handy!!
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now