Scenario A user selects a new value from a WPF combo box. You ask if they are sure they want to do this. User says “No”. WPF app is built with MVVM such that the combo box’s SelectedItem is bound to a property on the ViewModel. In the setter, you prompt the user and attempt... Continue Reading →
LinqKit and Dynamically building arbitrarily complex Linq Queries
In some cases, I need to be able to build a query that has a variable set of OR conditions. This is not simple with the default language constructs and extension methods. It’s simple to dynamically build an expression that includes AND parameters, because that is what the WHERE() extension method does. Not so easy for... Continue Reading →
Entity Framework 4.0 doesn’t enforce MaxLength metadata
I’m a little flabbergasted that Entity Framework does not do anything to enforce the MaxLength on string values. It just passes this responsibility down to the database and catches the resulting (unhelpful) exceptions. I suppose that there is a justification for this, but from an notably simplistic perspective… Why should I start a transaction and... Continue Reading →
VS 2010 Premium RTM – Got It!
After a couple hiccups with the download yesterday, I finally got the bits and got VS 2010 Premium installed. Great stuff! I’m glad to be running this on the host again, rather than a VM. I can take advantage of multi-monitor, GPU acceleration, and better speed! Hotness! My current project is using TFS Power Tools... Continue Reading →
Visual Studio 2010 Launches Today!
As far as I can tell, MS is launching VS 2010 today. I’m hoping that means that I can get my hands on the RTM bits. I’ve already checked MSDN, but all they have as of 10AM Easter time is the RC. Can’t wait for RTM so that I can put it on my host... Continue Reading →