By mswatcher
via ademiller.com
Published: Jun 05 2008 / 13:00
Here’s a little problem I ran into trying to use Unity as part of a factory for my ASP.NET MVC controllers. I was using a simple factory pattern to inject a Linq to SQL DataContext into the controller class the factory was constructing. Linq to SQL generates the data context code which leads to a few challenges when you try and consume it with Unity.
Add your comment