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

Generate multiple entities at once from Dir #185

Closed fasteddys closed 2 years ago

fasteddys commented 2 years ago

Hello, when we have several models/entities, is it possible to generate/run all/several entities at once.

For e.g. if we have dir with all my manually coded entities C:\SchoolProject\MySourceEntites\*.cs , how can we run a command like

abphelper generate crud C:\SchoolProject\MySourceEntites\*.cs -d C:\SchoolProject\MyABPHelperFiles

gdlcf88 commented 2 years ago

Aggregates have independent directories; if we add this new usage, you still need to run the command for each directory. And, it's not hard to generate CRUD separately for the aggregate root and some other entities you want.

I think this change is not necessary. You are better to do it with batch scripts since we should keep the command simple. Anyway, thanks for your advice.