Activities of "PasionaDev2"

  • 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:
  1. Create project in abp suite 7.4.0
  2. Create an entity (for example Foo) with the Customizable code option checked and generate the code
  3. Add a custom method definition in the IFooRepository.Extended.cs
  4. Because of the generated code and the interface rules, the method has to be implemented at the level of the FooRepository.cs instead of FooRepository.Extended.cs.
  5. The next regeneration of code for the entity Foo with 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.

Showing 1 to 1 of 1 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09