siva nathan

siva nathan

  • 956
  • 828
  • 235.6k

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 
 
 

Answers (1)