.NET and Agile Software Design RSS 2.0
# Wednesday, July 02, 2008
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:

           Kennedy-Dynamic-Linq.zip (88.34 KB)

And you can watch the screencast video here:

          Kennedy-Dynamic-Linq.wmv (35.7 MB)

Of course, if you like this post, please kick it: kick it on DotNetKicks.com


Wednesday, July 02, 2008 1:08:00 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
DevelopMentor | Talks | Visual Studio
Archive
<August 2008>
SunMonTueWedThuFriSat
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456
About the author/Disclaimer

Disclaimer
These postings are provided "AS IS" with no warranties, and confer no rights.

© Copyright 2008
Michael C. Kennedy
Sign In
Statistics
Total Posts: 29
This Year: 14
This Month: 1
This Week: 1
Comments: 28
Themes
Pick a theme:
All Content © 2008, Michael C. Kennedy
DasBlog theme 'Business' created by Christoph De Baene (delarou)