Dynamic Data Access with LINQ(michaelckennedy.net)

submitted by mkennedy66996693mkennedy66996693(480) 3 years, 10 months ago

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 this appear difficult at first. They are not and this video and sample application shows you how to accomplish just this.

1 comment |category: |Views: 33

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by BobSaggettBobSaggett(0) 3 years, 8 months ago 0

Hilarious.

This doesn't really show what it should. I could have worked out that I can dynamically change a query's sort order using a switch statement.

HOWEVER, it is a great example of how not to do a video. When it all falls apart at about 15 minutes in you can tell that the creator loses his track completely. When you get to classic programmer comments (I have used them myself) like "This worked earlier" and "Please don't do that", you know it is time to switch off camtasia and perhaps start again.

Brilliant!

Reply

information Login or create an account to comment on this story