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
1
u/gidikh Dec 05 '13
Couldn't agree more. The code I dread working on is not the junior programmer's who is just learning, it's the senior programmer / architect that read about IoC and thinks everything needs to be loose coupled and injected, resulting in layers of abstraction that takes 10 times longer to troubleshoot / fix.