Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Ability to register a Func<IServiceProvider, TDependency> to resolve instances of TDependency #104

Closed
divega opened this issue Sep 12, 2014 · 3 comments

Comments

@divega
Copy link

divega commented Sep 12, 2014

This is an idea that @loudej, @glennc and I discussed that could use to pass the IServiceProvider to DbContext instances without forcing customers to write complicated constructors in their derived DbContext classes. We would like to have this for beta to also make all the necessary changes in the EF DI registration extension methods.

@pranavkm
Copy link
Contributor

Sounds like a duplicate of #64 which is being fixed by #102? Could you confirm

@divega
Copy link
Author

divega commented Sep 15, 2014

Talked to @pranavkm. #64 is a bit more general in that it asks for the ability to register an arbitrary Func but the actual solution implemented in #102 is exactly what this bug was asking for. @glennc: heads up that this is already being worked on.

@divega divega closed this as completed Sep 15, 2014
@divega divega reopened this Sep 15, 2014
@divega
Copy link
Author

divega commented Sep 15, 2014

Reopening because I believe @pranavkm is using this one now to track.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants