When I talk about LINQ people often ask whether it’s possible to have dynamic queries with LINQ. An example of this is presenting the user with a UI that allows them to optionally filter by some criteria or other and sort by some criteria. This was straightforward if you built-up a SQL string in code.
The compiled, static nature of LINQ makes dynamic queries appear difficult at first. They are not and this video and sample application shows you how to accomplish just this.
Screen shot of sample application
You can download the source code here:
Hi, I’m trying to follow your video on LINQ, but to replicate code I need a database you used. Could you please share info on what database you used as example.
Thanks in advance.
Jozo