Open Closed

Adding custom Suite template text files #9119


User avatar
0
mloung created

Hi There,

What would the process be if we wanted to add custom Suite Templates to the CRUD generation system? The need is to automatically inject additional standard endpoints along side the normal CRUD operations. Modifying the existing templates manually, looks very cumbersome and prone to package update issues. Is there a means to have one process that executes and adds all the new code without having numerous text files?


3 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, if you need to add custom services, the best option you have is enabling the Customizing Code option

    enabling-custom-code.png

    and then make the related changes in the added *.Extended.cs files (those files are not overridden in the next code generation) and in the related hookpoints.

    Please refer to the Customizing the Generated Code documentation and if you face with a problem, please let me know.

    Regards.

  • User Avatar
    0
    mloung created

    I guess what I'm more asking is, can we utilize the generation process that the Suite tool uses to dynamically add code or is this not catered for and one must manually add code via extensions for additional standard endpoints.

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    I guess what I'm more asking is, can we utilize the generation process that the Suite tool uses to dynamically add code or is this not catered for and one must manually add code via extensions for additional standard endpoints.

    Actually, ABP Suite's templating system are just for defining some common and static configurations. In the code side, we are extending it with the required services.

    So, it's always a better option to go with the second option: "is this not catered for and one must manually add code via extensions for additional standard endpoints"

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 16, 2025, 12:13