Link Details

Link 85129 thumbnail
User 225256 avatar

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.
  • 7
  • 0
  • 831
  • 86

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (7)



Voters Against This Link (0)