How to implement IQueryable (by Kevin Halverson)

Published 11 July 07 03:15 PM

Here’s a link to a post I just finished on ‘How to implement IQueryable’ (create a custom Linq provider).

http://blogs.msdn.com/kevin_halverson/archive/2007/07/10/how-to-implement-iqueryable.aspx

My example project allows you to query the Windows Vista (Desktop) Search engine for files on your local machine.  For example:

        Dim index As New WDSQueryObject

        Dim cutoffDate = #6/28/2007#

 

        Dim r = From file In index _

                Where file.CreationTime > cutoffDate And _

                file.Name Like "%.exe" _

                Select file.FullName, file.CreationTime

 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# jared halverson said on June 7, 2008 8:02 AM:

PingBack from http://christianplace.yourfreehosting.net/jaredhalverson.html

Leave a Comment

(required) 
(optional)
(required) 

This Blog

Syndication

Page view tracker