Abp.EntityFramework Cannot replace build in service with IRepository
See original GitHub issueI work on Abp template MPA ASP.NET MVC, I try to replace build in service of IRepository<IEntity> In DataModule: PreInitialize and ApplicationModule:PreInitialize. i add line of code:
Configuration.IocManager.Register(typeof(IRepository<BysEntity>), typeof(BysRepositoryBase<BysEntity, int>), DependencyLifeStyle.Transient);
but not of all cannot replace, seem it also implement EfRepositoryBase.
Can you explain ? Thanks you for your support.
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (8 by maintainers)
Top Results From Across the Web
Customizing Application Modules Overriding Services
Replacing a service is possible for any type of class registered to the dependency injection, including services of the ABP Framework.
Read more >Dependency not injecting While using AddRepositories
I am trying to register repositories in a separate module called freeswitch via ABP Framework. Interface is IFSExtensionRepository context.
Read more >ABP Framework Generic Repositories - YouTube
Repositories, in practice, are used to perform database operations for domain objects (see Entities ). Generally, a separated repository is ...
Read more >Entity Framework Core
AspNet Boilerplate (ABP) is an open source and well-documented application framework. See the comprehensive tutorials of ABP for technical information.
Read more >Implementing the Repository and Unit of Work Patterns in ...
The Contoso University sample web application demonstrates how to create ASP.NET MVC 4 applications using the Entity Framework 5 Code First ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@hikalkan Thanks for your support. ABP is great framework.
Documented: https://www.aspnetboilerplate.com/Pages/Documents/EntityFramework-Integration#DocCustomRepositoryMethods