I am very new to this, so bear with me.
I have an MVC application using the Service / Repository / EF4 template and I'm trying to use Ninject. I work on controllers, they are a constructor that introduces services, but services are a constructor that repositories are built into, and I'm not sure where to process it.
I'm trying to make every layer only know about the bottom layer, is this true? If so, the MVC application only knows about the service level, and the service level knows only about the repository layer, etc. So in my Ninject module, where I create the bindings, I cannot say:
Bind(Of IRepository(Of Category)).To(Of EFRepository(Of Category))
Where do I handle the injection in?
source
share