Does AB Suite support generating a full 3-level child hierarchy (With Master-Child) (e.g., Lesson → Tests → Questions) with the Angular as frontend ?
its related to a existing ticket by another user , https://abp.io/support/questions/7047/ABP-Suite-Master---child-hierarchical-entities
2 Answer(s)
-
0
- Solution
Short answer: No. ABP Suite’s built-in Master-Detail generation currently supports a single child level (master → child). It does not generate a full 3-level nested hierarchy (e.g., Lesson → Tests → Questions) out of the box for the Angular UI.
What you can do:
- Use ABP Suite to generate the first two levels (Lesson → Tests) with Master-Detail.
- Manually add the third level (Questions) by:
- Creating the third entity (Questions) in Suite (as a standalone CRUD).
- Adding the foreign key (e.g., TestId) and the corresponding navigation properties.
- Extending the generated Angular pages: inside the Tests detail/view/edit page, embed or route to the Questions list/edit components filtered by TestId.
- Add application service methods for queries like GetListByTestIdAsync, and expose them via Angular proxy methods.
- Alternatively, model the hierarchy as two separate Master-Detail screens:
- Screen A: Lessons (master) with Tests (detail)
- Screen B: Tests (master) with Questions (detail)
- Navigate from A’s Tests tab/row to B, passing the TestId.
Reference to the related support ticket: The existing thread confirms Suite handles master-child but not multi-level nested generation. You can use it as confirmation and guidance.
- Sources
- https://abp.io/support/questions/7047/ABP-Suite-Master---child-hierarchical-entities (validated)
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.
-
0
Does ABP Suite support generating a full 3-level child hierarchy (With Master-Child) (e.g., Lesson → Tests → Questions) with the Angular as frontend ?
Hi, currently ABP Suite does not support 3+ level master-child relationship. A master can have multiple child entities associated with it but unfortunately, in the current design, you can't make a child entity as a master entity of an another entity.
Regards.