April 2009 Entries

Resharper 4.5

Looks like Resharper 4.5 is out the door.  The big initiative this time seems to have been performance.  I have to admin, sometimes 4.x seemed to take forever to load on large projects.  I’ve been using the beta for a little bit, and it definitely seems like the project load times are shorter.  I like the solution-wide code inspection as well.  That’s been on my wishlist for a while. Technorati Tags: Resharper,.Net

posted @ Wednesday, April 08, 2009 10:23 PM | Feedback (0)

LINQ to SQL DataContext Provider Revisited

A complete sample code project for this article is available here. In a previous post, I had proposed an idea on how to control the lifetime of the DataContext in LINQ to SQL (L2S).  I basically created a provider class that would detect the presence of an HttpContext.  If the context was present, it would use the HttpContext and store the DataContext on a per-request scope.  Otherwise, it would store the DataContext in the CallContext, basically creating a per-thread scope for the DataContext.  I actually felt a little dirty after having done this, but for some reason...

posted @ Monday, April 06, 2009 10:44 PM | Feedback (1)