Back to list
Views:   5.7K
Replies:  0

Using Ninject with the Patterns in Action application

If I wanted to add Ninject to the Patterns in Action project.

Then remove DataAccess. Which layer would I put it in and how?
For example, I want to remove private static readonly IAuditDao _auditDao = DataAccess.AuditDao.
Would I add Ninject in the Service layer in place of private static readonly IAuditDao _auditDao = DataAccess.AuditDao?

Or do I add Ninject in Presentation layer?


Dennis Tucker, Jun 11, 2012
So I would add ninject to the presentation layer? Add a "NinjectControllerFactory" class to my presentation and add my code?
Jun 28, 2012
I am newbie here, how to print code cause' it deletes greater than and less than sign in the content
Jun 14, 2012
Presentation Layer should not be the place to initialize a dataaccess object. You can private static readonly IAuditDao _auditDao = injector.Get(); before you do that, you should bind all dependencies to it.
Jun 14, 2012
Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Cookies       Do Not Sell       Licensing      
Made with    in Austin, Texas.  - vsn 44.0.0
© Data & Object Factory, LLC.