The Wayward WebLog

Oh, what a tangled web

Posts
  • The Wayward WebLog

    LINQ: Building an IQueryable Provider - Part I

    • 51 Comments
    I’ve been meaning for a while to start up a series of posts that covers building LINQ providers using IQueryable. People have been asking me advice on doing this for quite some time now, whether through internal Microsoft email or questions on the forums or by cracking the encryption and mailing me directly. Of course, I’ve mostly replied with “I’m working on a sample that will show you everything” letting them know that soon all will be revealed. However, instead of just posting a full sample here I felt it prudent to go step by step so I can actual dive deep and explain everything that is going on instead of just dumping it all in your lap and letting you find your own way. ...
  • The Wayward WebLog

    LINQ: Building an IQueryable Provider - Part II

    • 34 Comments
    Now, that I’ve laid the groundwork defining a reusable version of IQueryable and IQueryProvider, namely Query and QueryProvider, I’m going to build a provider that actually does something. As I said before, what a query provider really does is execute a little bit of ‘code’ defined as an expression tree instead of actual IL. Of course, it does not actually have to execute it in the traditional sense. For example, LINQ to SQL translates the query expression into SQL and sends it to the server to execute it. ...
  • The Wayward WebLog

    YODA the Programming Language

    • 41 Comments
    Now that LINQ is out the door, so to speak, I can start focusing my efforts on the next next technology here at Microsoft. Ever since I joined up with the C# team nearly two years ago I’ve been frustrated by my inability to wax poetic about all the goodness...
  • The Wayward WebLog

    LINQ: Building an IQueryable Provider - Part VIII

    • 22 Comments
    Implementing OrderBy Today's topic is translating those order-by clauses. Fortunately, there is only one way to do ordering, and that's using the LINQ ordering specific query operators. The bad news is that there are four different operators. ...
  • The Wayward WebLog

    LINQ: Building an IQueryable Provider - Part III

    • 20 Comments
    Part III? Wasn’t I done in the last post? Didn’t I have the provider actually working, translating, executing and returning a sequence of objects? Sure, that’s true, but only just so. The provider I built was really fragile. It only understood one major query operator and a few minor ones like comparison, etc. However, real providers are going to have to deal with many more operators and complicated interactions between them. For example, that provider did not even let you project the data into new shapes. How one goes about doing that is non-obvious. ...
  • The Wayward WebLog

    LINQ: Building an IQueryable Provider - Part IV

    • 22 Comments
    I just could not leave well enough alone. I had the crude LINQ provider working with just a translation of the Where method into SQL. I could execute the query and convert the results into my objects. But that’s not good enough for me, and I know it’s not good enough for you. You probably want to see it all; the transformation of a little sample program into a full-fledged working ORM system. Well, I’m probably not going to do that. However, I still think there’s a lot of common ground I can cover, that you can make use of in your provider, by showing you how I’m going to implement Select. ...
  • The Wayward WebLog

    Infinite Monkeys

    • 13 Comments
    Guys in lab coats weird me out. I’m not sure why exactly, but I think it has something to do with the mad-scientist look. I want to think they are doctors, M.D’s, but they are not. They are imposters draped in white-coats of authority, doing...
  • The Wayward WebLog

    LINQ: Building an IQueryable Provider - Part VI

    • 34 Comments
    So, again you thought I was done with this series, that I've given up and moved on to greener pastures. You think that since Select works wonderfully that that's all you need to know to make your own IQueryable provider? Ha! There's loads more to know. And, by the way, Select is still broken. ...
  • The Wayward WebLog

    Oops, we did it again

    • 32 Comments
    A new update to LINQ preview is available at MSDN site. What's the coolest new feature? IMHO, its IQueryable<T>. DLINQ's query mechanism has been generalized and available for all to use as part of System.Query. It implements the Standard...
  • The Wayward WebLog

    LINQ: Building an IQueryable provider - Part VII

    • 22 Comments
    This is the seventh in a series of posts on how to build a LINQ IQueryable provider. If you have not read the previous posts you might want to rethink your place in the universe. :-) ...
Page 1 of 28 (273 items) 12345»