Congratulations - C# Corner Q4, 2022 MVPs Announced
Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
siva nathan
1.4k
786
172.3k
how to do dynamic column and values in linq c# query
Mar 22 2021 9:50 AM
Hi All,
i need to filter the table values in linq with passing column name and values dynamically
Name
Age
Address
john
34
USA
albert
35
UK
david
32
Japan
having dynamic class values like below
{\"name\":{\"value\":john,\"matchMode\":\"contains\"}
{\"age\":{\"value\":35,\"matchMode\":\"startsWith\"}
above values are generated from primeng datatable need to filter above table based on above json values
how can i write query in where clause dynamic column and values filter
Reply
Answers (
1
)
I am facing error while execution linq query with maxsync
how to filter column name as well as respective va