Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Discussion around API for MVC DI wireup #1388
Firstly, apologies if I've missed some guidance somewhere on making this work.Taken from this wiki page, all the examples have a controller taking a direct dependency on a context, not an interface.
Looking at the default wireup for EF services in MVC:
There doesn't seem to be a way to register this context in the DI container as an interface?
Perhaps something like
I don't think we need anything EF specific here, as DI already allows you to register an interface (or base type) to resolve to another service that is already registered in DI.
@divega agree that this can be closed?