How to use Dependency Injection with ASP.NET
- by Schneider
I am trying to work out a way to use Dependency Injection with ASP.NET controls.
I have got lots of controls that create repositories directly, and use those to access and bind to data etc.
I am looking for a pattern where I can pass repositories to the controls externally (IoC), so my controls remain unaware of how repositories are constructed…