Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically register repositories in the DI container at startup #2

Open
StevenVandenBroeck opened this issue Jan 14, 2016 · 1 comment

Comments

@StevenVandenBroeck
Copy link
Member

All classes inheriting from the repository base classes could be automatically registered in the DI container. This removes the need for the developer to do this when he/she makes custom repositories.
Via the options the developer can be given the choice teo enable/disable this and give the scope of the registration (Transient, Scoped, Singleton).

@VictorioBerra
Copy link

I noticed the Uow was registered as a singleton and the EF context was a transient. Shouldn't all that be scoped?

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

No branches or pull requests

2 participants