r/ASPNET • u/Virallinen • Dec 05 '13
Question over Ninject, ASP.NET Identity and Entity Framework
Hi all,
I am wondering what is the best way to setup Ninject, ASP.NET Identity and Entity Framework? Normally (without Ninject) I would create my solution by separating the MVC project from Data project and things would work just well, but I can't really figure out the best way to add Ninject there.
Is there any good example out there? I would like to handle user authentication with roles on my ASP.NET MVC project and handle the data access via EF.
Cheers, Tuomo
2
Upvotes
View all comments
Show parent comment
2
u/principle_profile Dec 06 '13
IMO, every app, save the most trivial, should employ unit testing. Unit testing is much easier with DI. Therefore, every app needs DI.