EasyAbp / AbpHelper.CLI

Providing code generation and more features to help you develop applications and modules with the ABP framework.
MIT License
285 stars 95 forks source link

CRUD: sub-entity code generation improvement #176

Open gdlcf88 opened 2 years ago

gdlcf88 commented 2 years ago

Sub-entity means the class inherits the Entity or Entity<TKey>. CRUD for Sub-entities doesn't need to generate specifics but generates during the aggregate root CRUD generation.

Assume I am generating CRUD code for the "Author" entity of the "Book" aggregate.

Finally, I think the CRUD generation could limit to work only for aggregate roots since we generate CRUD for sub-entities during the aggregate root CRUD generation.