How to implement IQueryable (by Kevin Halverson)

How to implement IQueryable (by Kevin Halverson)

  • Comments 1

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

 

Leave a Comment
  • Please add 5 and 5 and type the answer here:
  • Post
Page 1 of 1 (1 items)