Sample N-tier web application using Ninject?

I am trying to learn how to use dependency injection and Ninject. I read blog posts on this topic and Mark Semyon's book, "Injecting Dependencies in .NET." Although I have a general understanding of DI, I am having trouble understanding how to organize code in an n-tier web application.

Does anyone know a sample project that I can upload, or a blog post to view? Even better if the sample is based on Ninject and MVC3.

+6
source share
2 answers

NerdDinner is a sample ASP.NET MVC project, and it has been updated to MVC 3: http://nerddinner.codeplex.com/

There are modified versions of the old version of MVC 2 that use Ninject and Unity to inject dependencies: http://nerddinneraddons.codeplex.com/ The author of these projects provided another sample application using MVC 3 and Entity Framework 4.1: http: //efmvc.codeplex .com / , but instead uses AutoFac and not Ninject to inject dependencies.

+4
source

Here's S # arp Lite , a lightweight version of S # arp Architecture recently launched with the original author of S # arp Architecture.

His introductory blog posts:

+3
source

Source: https://habr.com/ru/post/904035/


All Articles