Category Archives: Technical

Global Error Handling in ASP.NET MVC 3 with Ninject

Download the code for this blog post. In my last blog post I explained how to decouple infrastructure concerns, such as logging, from the rest of your application using a Dependency Injection container, such as Ninject. I implemented an ILoggingService … Continue reading

Posted in Technical | Tagged , , , | 8 Comments

Using NLog with Dependency Injection

Download the code for this blog post. In my last post I blogged about using Dependency Injection to break tight coupling between application components.  This lets you to treat infrastructure pieces, such as data access or logging, as swappable entities, … Continue reading

Posted in Technical | Tagged , , | 17 Comments

Peeling Back the Onion Architecture

Download the code for this article. Updated 14-Oct-2011: I modified the code sample to include controller unit tests and improved the config and logging services. I recently started a consulting project as an architect on an ASP.NET MVC application and … Continue reading

Posted in Technical | Tagged , , , | 85 Comments

Build a Multi-Project Visual Studio Template

Download the code for this article here. (Zip file updated to include source code for VSIX and Wizard projects.) Earlier this year I authored an open-source toolkit, called Simple MVVM Toolkit, to help developers build Silverlight, WPF and Windows Phone … Continue reading

Posted in Technical | Tagged , | 69 Comments

Digging into WCF REST

Update: The recording for this talk is now available. Last Thursday evening I presented a talk to the Dallas .NET User Group on support in WCF 4 for building REST-ful services. Here is a summary of the talk: To REST … Continue reading

Posted in Technical | Tagged | 20 Comments

Commands versus Event Triggers in MVVM

Recently I’ve received some questions from the Simple MVVM Toolkit’s discussion forum on when to use commands versus Blend-style event triggers. For several reasons I tend to favor event triggers over commands in most scenarios, especially for Silverlight applications. Download … Continue reading

Posted in Technical | Tagged , | 11 Comments

Validation with Simple MVVM Toolkit

In version 2.1 of Simple MVVM Toolkit I added support for validation with INotifyDataErrorInfo. This interface obsolesces IDataErrorInfo because it does everything that interface did but enables additional functionality: Multiple validation errors per property Entity-level validation Asynchronous server-side validation INotifyDataErrorInfo … Continue reading

Posted in Technical | Tagged | 20 Comments

Simple MVVM Toolkit 2.1 Released!

There has been some good feedback on the project discussion board for Simple MVVM Toolkit. So I’ve incorporated most of the requested features and improvements and rolled them into an update. Version 2.1 includes support for validation with INotifyDataErrorInfo for … Continue reading

Posted in Technical | Tagged | 12 Comments

Screencast: Real-World MVVM with WCF RIA Services

Great news! I have just published an online tutorial and screencast for using the Simple MVVM Toolkit to build Real-World MVVM Apps with WCF RIA Services. Screencast Part 1 Streaming (watch now) or Download (offline for pc or mobile device) … Continue reading

Posted in Technical | 23 Comments

Simple MVVM Toolkit versus MVVM Light Toolkit

Now that I’ve released Simple MVVM Toolkit version 2, people are starting to ask how it stacks up against some of the other MVVM Toolkits out there. (MVVM, which stands for Model-View-ViewModel, is a UI design pattern that provides better … Continue reading

Posted in Technical | Tagged | 44 Comments