Starts in:
2 DAYS
9 HRS
39 MIN
45 SEC
Starts in:
2 D
9 H
39 M
45 S
Open Closed

How to modify Service or Repository class without overridden when re-generate the entity & UI via ABP Suite ? #2352


User avatar
0
esasongko created

Hi, May I know how to modify Service or Repository class without overridden when re-generate the entity & UI via ABP Suite ?

For example: I created and generated 1 entity, says Employee Then I needed to add additional method to the EmployeeAppService and EfCoreEmployeRepository classes. After I added the methods, I needed to add another fields to Employee entity so that I will go to ABP Suite and add those fields. After I successfully regenerated Employee entity, I found that Service and Repository classes are reverted back to original state.

May I know how to handle such situation? Is there any way to extend the service without being overridden?

ABP Version: 5.0.0 DB: SQL Server UI Framework: MVC

Thank you, Edi


1 Answer(s)
  • User Avatar
    0
    Emanuele.Filardo created

    You can try to customize template to generate partial class and put your methods in another file of partial class

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06