Old blog. Blog moved to thomasgathings.com
I would delete this...but I don't see the option

December 2008 Entries

Linq to SQL: an optimization on working with object graphs

I was working on a small web application that was built very quickly using Linq to SQL and I wanted to ensure that a particular page wasn't loading more data than needed into memory. This particular page had a simple GridView, and in the one and only item template, there was an ASP.Net Image (along with some other stuff). The data source was of type IQueryable<Article> and an Article may have zero to many ArticleImages. A relationship was present in the dbml, so the ArticleImages were generated...

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati