Project Description
Add-ons for ASP.NET MVC 2 NerdDinner Application

Dependency Injection using Ninject 2.0

For working with Ninject, check out the blog post http://weblogs.asp.net/shijuvarghese/archive/2010/04/30/dependency-injection-in-nerddinner-app-using-ninject.aspx

Do the following steps to work with Ninject for NerdDinner Application

1) Download the NerdDinner app from http://nerddinner.codeplex.com. Take the ASP.NET MVC 2 version from source code tab.
2) Open the NerdDinner Application and add refernce to Ninject.dll and Ninject.Web.Mvc.dll. Both DLLs available from Ninject\Ninject DLLs folder
3) Replace the Global.asax.cs file from the Ninject folder


Dependency Injection using Unity 2.0

For working with Unity 2.0, check out the blog post http://weblogs.asp.net/shijuvarghese/archive/2010/05/07/dependency-injection-in-asp-net-mvc-nerddinner-app-using-unity-2-0.aspx

Do the following steps to work with Unity for NerdDinner Application

1) Download the NerdDinner app from http://nerddinner.codeplex.com. Take the ASP.NET MVC 2 version from source code tab.
2) Open the NerdDinner Application and add refernce to Microsoft.Practices.Unity.dll and Microsoft.Practices.Unity.Configuration.dll Both DLLs available from Unity/UnityDLLs folder
3) Add the UnityControllerFactory.cs file on the Controllers folder or any other folder you want to add. This file contains the Unity Controller Factory
4) Replace the Global.asax.cs file with the file in the Unity folder


Update for ASP.NET MVC 3
Check out the demo app at http://efmvc.codeplex.com for dependency injection in ASP.NET MVC 3.


Follow me in Twitter

Last edited Feb 3, 2011 at 10:26 AM by shijuvar, version 11