I am new to Dependency Injection. I want to know the difference between IoC and Depenedency Injection.
Are both the same? Are these two some kind of design pattern?
I have googled and got some info of using Unity and Ninject for DI. I want to know if we can go for DI without such unity blocks. For example, If i have a small project where I want to use DI, then I can create my own builder class or not?
Please throw some links\information which show simple basic examples of Using IoC and DI.
ay1585
Member
44 Points
155 Posts
Dependency Injection in MVC
Dec 27, 2012 10:59 AM|LINK
Hi All
I am new to Dependency Injection. I want to know the difference between IoC and Depenedency Injection.
Are both the same? Are these two some kind of design pattern?
I have googled and got some info of using Unity and Ninject for DI. I want to know if we can go for DI without such unity blocks. For example, If i have a small project where I want to use DI, then I can create my own builder class or not?
Please throw some links\information which show simple basic examples of Using IoC and DI.
Thanks !!
urenjoy
Star
12181 Points
1824 Posts
Re: Dependency Injection in MVC
Dec 27, 2012 11:24 AM|LINK
Check following good resources:
http://msdn.microsoft.com/en-us/vs2010trainingcourse_aspnetmvcdependencyinjection.aspx
http://www.dotnetcurry.com/ShowArticle.aspx?ID=786