Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
How to add dynamic column Linq in where condition using refe
Pankaj Kumar
Oct 11 2017 8:39 AM
153
Reply
Add dynamic column Linq in where condition using refelection in c#
string filterValue = "ABC", filterColumName = "ClientName";
clients = clients.Where(x => x.GetType().GetProperty(filterColumName).GetValue(x).ToString() == filterValue).ToList();
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
How to Pass Values from textbox to this query
How to reduce overlapping text in pdf using rotativa in MVC