question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Abp.EntityFramework Cannot replace build in service with IRepository

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, May 12, 2017

@hikalkan Thanks for your support. ABP is great framework.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found