What is Dependency injection? Importance in MVC?
What are the way to implement Dependency Injection in MVC?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Shweta LodhaRank #31 · 39.8K reputationPosted Feb 2, 2014, 3:40 AM EST
Simple Injector supports MVC4. They got a quick start package for MVC. It states that it's for MVC3, but it works just fine for MVC4 too. If you like simplicity and not expecting tons of conventions and hidden configurations, you just have to create a container and register the dependencies explicitly. Then this is one of the choice.
Shweta LodhaRank #31 · 39.8K reputationPosted Feb 2, 2014, 3:41 AM EST
http://www.codeproject.com/Articles/560798/ASP-NET-MVC-Controller-Dependency-Injection-for-Be