Interviews7 answers
Is it possible to create query for Linq on columns identified at runtime and not the parameter values?
7 Answers
yes
Reny RuthPosted Jun 29, 2020, 8:07 AM EDT
Yes
Reny RuthPosted Jun 29, 2020, 7:59 AM EDT
It is not Possible Because of first compiler check and gives an error
Kiran MahajanPosted Sep 27, 2016, 4:25 AM EDT
Dynamic LINQ Queries with Expression Trees can be used
Keerthi VenkatesanPosted Jun 7, 2016, 10:28 PM EDT
Dynamic LINQ library can be used to achieve this.
Bhuvanesh MohankumarPosted May 29, 2016, 7:20 AM EDT
Expression tree can be your option here
Shweta LodhaPosted Jan 26, 2016, 11:27 PM EST
By default its not possible in LINQ, You need you to write your own logic of few hundred lines to achieve this. By doing so it would be possible to possible to pick a column at runtime, also possible to decide filter at runtime. Expression Tree classes can help you achieve this.
Hemant MahajanPosted Jan 26, 2016, 7:45 AM EST




