Another day, another Entity Framework (and ASP.NET MVC 5) async problem, and another solution for you! Actually, today I have two solutions for you! This time, I ran into a problem with HttpContext’s Items collection losing my IoC container when execution resumed after an await. The fix is simple once you understand what’s going on….
try-catch-FAIL
Month: <span>April 2014</span>
Painless Workstation Setup with Boxstarter
I recently used Boxstarter to set my development machine back up after a format. Boxstarter is a game-changer for Windows. I create a simple Powershell script, ran a simple command, then walked away as my machine spent the next several hours downloading, installing, and rebooting, all without me lifting another finger. When the dust settled,…
A Better Way to Configure AutoMapper for ASP.NET MVC (Video)
AutoMapper is one of the essential tools in my ASP.NET MVC toolbelt. I use it on every MVC project I do. It’s saved me countless lines of code over the years. And yet, there’s always been one thing that bugged me about it: it violates the idea of "common closure." I’ve built a better way…
SpecsFor and SpecsFor.Mvc Roadmap
Today, I took the first steps in laying out a roadmap for future work on both SpecsFor and SpecsFor.Mvc. [more] First, I created a public Trello board to track ideas. You can review the ideas I’ve tossed up there and vote on what you think is most important. I see a couple of big themes…
Making TransactionScope Work with async/await in .NET 4.5
I ran into a frustrating little problem today. I’m getting started with Entity Framework 6 and its async features on a new project, and my SpecsFor integration tests were bombing out unexpectedly. In turns out the problem was caused by TransactionScope and async work together out of the box. Or rather, how they don’t work…