1 March 2010 1 Comment

Tip 55 – How to extend an IQueryable by wrapping it.

Over the last couple of years I’ve found myself in lots of situations where I’ve wanted to get ‘under the hood’ and see what is happening inside an IQueryable, but I haven’t had an easy solution, at least until now. Getting down and dirty like this is interesting because it means you can: Log Queries before they are executed Rewrite expressions, for example replacing expressions that are not supported by a provider – EF, LINQ to SQL, LINQ to Objects etc – with expressions that are. Anyway, I was very pleased a while back when reviewing some sample code by Vitek, who has a new blog by the way, and I realized I could generalize it to create an InterceptedQuery<> and an InterceptingProvider

More:
Tip 55 – How to extend an IQueryable by wrapping it.

If you liked this post, buy me a Coffee.

One Response to “Tip 55 – How to extend an IQueryable by wrapping it.”

  1. generic levitra uk 1 March 2010 at 2:47 pm #

    I liked it. So much useful material. I read with great interest.


Leave a Reply