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

Do not register repository classes to dependency injection by default #6677

Closed
hikalkan opened this issue Dec 16, 2020 · 0 comments · Fixed by #6678
Closed

Do not register repository classes to dependency injection by default #6677

hikalkan opened this issue Dec 16, 2020 · 0 comments · Fixed by #6678

Comments

@hikalkan
Copy link
Member

hikalkan commented Dec 16, 2020

We always use repositories over interfaces (like ICustomerRepository or IRepository<Customer, Guid>). However, if anyone injected the repository class (like CustomerRepository), this will be a breaking change.

To continue to use the old behaviour, write this in the beginning of your application:

AbpRepositoryConventionalRegistrar.ExposeRepositoryClasses = true;

We do this since it improves performance.

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

Successfully merging a pull request may close this issue.

1 participant