0
PasionaDev2 created
- ABP Framework version: v7.4.0
- UI Type: Doesn't matter.
- Database System: EF Core
- Tiered (for MVC) or Auth Server Separated (for Angular): no
- Exception message and full stack trace:
- Steps to reproduce the issue:
- Create project in abp suite 7.4.0
- Create an entity (for example
Foo) with the Customizable code option checked and generate the code - Add a custom method definition in the
IFooRepository.Extended.cs - Because of the generated code and the interface rules, the method has to be implemented at the level of the
FooRepository.csinstead ofFooRepository.Extended.cs. - The next regeneration of code for the entity
Foowith the abp suite will erase the implementation of the method and will make the build fail.
Expected behaviour
The implementation of the interface should be at the level of the FooRepository.Extended.cs not at the level of FooRepostiory.cs. Should be the same behaviour as the AppServices.
Actual behavior
The implementation of the interface is at the level of the FooRepository.cs.
Workaround
Templates can be change in order to fix the generated code. The changed templates are Server.Repository.CustomCode.EfCoreRepository.Extended.txt and Server.Repository.EfCoreRepository.txt. the I%%entity-name%%Repository should be added in the first one and removed in the second one.
1 Answer(s)
-
0
Hi,
Thanks for the information, we have noticed this problem, and it is expected to be fixed in the next patch version.
Your ticket was refunded.