We would like to use ABP Suite to generate code for our entities in a solution we have created using the Microservices Template. We have been adding a custom Domain Layer to all our microservices (similar to the domain layer that exists in the layered web app ABP template, but does not exist when generating microservices). The issue that we are having, is that the layer is being ignored by all our generated code. Is there a way that we can customize this process to generate the code that we need? Or is this scenario not supported?
3 Answer(s)
-
1
ABP Suite currently supports code generation for the services of a microservice solution, but UI code generation is not supported yet. When using the microservice template, ABP Suite generates code only for the supported layers and does not recognize or generate code for a custom Domain Layer you add to your microservices. Customizing the code generation process to include your own Domain Layer is not supported out of the box in the current version.
You can generate code on the service layer, but if you require code generation for a custom Domain Layer, you will need to manually integrate or adapt the generated code to fit your architecture.
This scenario—automatic code generation into a custom Domain Layer in microservice solutions—is not currently supported by ABP Suite.
Sources:
- https://abp.io/docs/latest/studio/working-with-suite
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
-
1
Hi, could you please elaborate if this will be supported by ABP Suite at some point and what is the timeline?
We are starting a huge project and need to define the way to move forward, although the document states that, it might be actually feasible to do some adjustments.
-
0
[lucasconde] said: Hi, could you please elaborate if this will be supported by ABP Suite at some point and what is the timeline?
We are starting a huge project and need to define the way to move forward, although the document states that, it might be actually feasible to do some adjustments.
Hi @lucasconde, when you add your microservice to the Suite, it writes its details to the
appsettings.json
file under the.suite
folder (%%user-profile%%/.abp/.suite). You can see all of your solutions there, and you can change theDomainProjectDirectory
and other directories and general options to let ABP Suite generate the code in the relevant directories with options:Unfortunately, currently, there is no option in ABP Suite to do it on the UI side. So, you need to do it manually.
Regards.