Tag Archives: .NET

Validation Messages – MVVM Approach

What follows is a simple way to carry along a collection of Validation Messages in your ViewModel, and then bind them to the UI at runtime.   The first step is to create an ObservableCollection of validation messages on the … Continue reading

Posted in Development | Tagged , | Leave a comment

HttpContext.Current.Session – Unit Testing

Here is a quick clever trick for failing over the connection string, in the case that it doesn’t already exist on the HttpContext.Current.Session object. As you may know, Unit Testing frameworks don’t always mock out the HttpContext class properly, if … Continue reading

Posted in Development | Tagged , | Leave a comment

Creating a TechEd 2010 WCF Syndication Feed

I love my Zune. Srsly. I often subscribe to conference videos (PDC, TechEd, MIX, TedTalks), and watch them over time with my Zune. This year though, the TechEd folks decided to expose the sessions as an oData feed.  I love … Continue reading

Posted in Development | Tagged , , , | 1 Comment

Linq to SQL – The Importance of DataLoadOptions

Here is a simple example. We have Categories, which have many Initiatives.  Easy one-to-many relationship. We have a Linq to SQL query, that grabs the Categories.  Since the table relationship is in the Linq to SQL DataContext (.dbml file), it … Continue reading

Posted in Development | Tagged , , | Leave a comment

Visual Studio – Decreasing Local Build Times

As we all know, Ctrl+Shift+B is the keyboard shortcut to “Build Solution”. However, when you are building a very large web app, it can take several minutes (or more) to build everything. This is counter-intuitive when you’re working on a … Continue reading

Posted in Development | Tagged , | 1 Comment

Reading Memory Dumps with WinDbg

  A post-mortem crash dump can be an invaluable resource in finding Production problems, that only occur in Production. This should be considered a “last-ditch effort” to find the issue, and should only be attempted after you’ve tried everything else. … Continue reading

Posted in Development | Tagged , , | 1 Comment