From Dynamic Linq, how to create dynamic-linq where for a List of Dictionary?

0 votes
asked Mar 16, 2016 by fnx_this (290 points)
Thx for your suggestions. I've been using dynamic-linq to filter list of object using simple Where clause:public class Employee{ public int Age = 0; public string FirstName = "";}var list1 = new.

5 Answers

+1 vote
answered Jun 2, 2016 by Oruthe (460 points)
selected Jun 4, 2016 by GurUsing
Best answer
Could someone explain what this means. For more information
commented Jun 4, 2016 by GurUsing (1,090 points)
This one took me about half a day to figure out but this is what worked for me
0 votes
answered Mar 17, 2016 by sourceWixom (1,780 points)

Let's say a admin user want to filter the product list. And even linq itself can be used to 'dynamicly' construct a query.
The great benefit of the 'old' linq is the fact that's it's strong typed.
0 votes
answered Apr 14, 2016 by Jnl2035Dec (520 points)

Just wondering if your example is fit for object which are dynamic.
+1 vote
answered May 31, 2016 by weidert (1,360 points)

The list itself is initialized with a collection initializer. Each student in the list is initialized with an object initializer.
Create a C# Project To create a project Start Visual Studio.
+1 vote
answered Jun 2, 2016 by soderbe (180 points)
Visit Build Where Clause Dynamically in Linq - CodeProject will give you an idea of what to do
You can copy code from here
commented Jun 3, 2016 by nz2385 (250 points)
How to handel it with LinqDatasource Insert/Update, etc

Related questions

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!