Initizlizing a DbContext in a BaseController for MVC6 and EF7?
|Added at||2016-01-15 19:01|
Following the ASP.Net 5 Getting Started document I see that because of
to inject the DbContext into the controller for use. In my ASP.Net 5 MVC 6 Web App every single page will be interacting with the database so I thought I would create a
I am new to DI and not sure if I am doing things right or even if it can be done the way I want to. Is it possible to do it this way or do I have to put that code on every controller I make, and if I do have to do that how can I write an action in the