LINQ to SQL, LINQ to Amazon, LINQ to Coffee Machine …

At “Meet the LINQ Team” session at TechEd, I got a few questions about LINQ to SQL and if it was possible to build a similar implementation. The answer is – absolutely you can. Take the soon-to-be released expression tree API documents, a few samples on the net and start cooking. What can you build a LINQ provider for? Any source of data worth querying. Who knows, it could be a smart fridge which tells you about the contents and perhaps down the road – your coffee machine.

 The complexity of a provider depends on:
1. What set of query operators you choose to implement; and
2. Difference between the query operators and the target query language or API; and
3. Level of optimization or tuning you want to do; and finally
4. Availability of samples (yes, you guessed right. Our team members are working on this one in addition to the community at large)

Coffee machine aside, there are many providers already available. Most are based on May 2006 LINQ CTP but most can be upgraded to .NET Framework 3.5 without too much effort. Charlie’s blog post and Oakleaf systems blog post have good starter lists.



Comments (5)

  1. scott brown says:

    Thanks for the great Q&A at TechEd!

    I am really looking forward to the release of the Expression Tree documentation.  Do you have a date yet?

  2. Welcome to the XXVIII Community Convergence. In these posts I try to wrap up events that have occurred

  3. Leaf says:

    Seems great, could make a provider for websites, like select newdoc from msdn, haha

    or select images from aGoogleSearch

    how cool could this world be?

  4. Bart says:

    LINQ to SharePoint, targeting CAML-based queries, is another one that might be interesting. Check it out on


  5. Uno de los "mind stoppers" con los que me encuentro con más frecuencia durante las charlas