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

Command [Generate Crud] does not create a role and a seed for Permissions #127

Closed mrs01dev closed 3 years ago

mrs01dev commented 3 years ago

For [Generate crud] Command Please add/Generate a role with the name of C# class. Please Seed the New Role to admin user Thanks

wakuflair commented 3 years ago

I think a new role for each entity is not nesscessary. Could you explain your scenario?

mrs01dev commented 3 years ago

Application with multiple/different groups of users (Human resource group - accounting group -marketing group - procurement group). Each Group has it's own web pages [ for group only ,for other groups -request for vacation/leave - ] Each Group will have it's own Rules.

wakuflair commented 3 years ago

The crud command's target is an entity, and will generate permissions for it. You can create a role and grant these generated permissions to it.