Solved

How would I make a "dynamic" LINQ Statement

Posted on 2009-06-30
2
324 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

895 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

11 Experts available now in Live!

Get 1:1 Help Now