Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subfolder Created under Pages Folder Razor Page #186

Open
zaktecs opened this issue Sep 11, 2022 · 1 comment
Open

Subfolder Created under Pages Folder Razor Page #186

zaktecs opened this issue Sep 11, 2022 · 1 comment

Comments

@zaktecs
Copy link

zaktecs commented Sep 11, 2022

Hi,
I'm not sure if I'm doing something wrong somewhere. When i generate CRUD in my razor pages, it creates to sub folder per class in the pages folder. e.g
Class: Person then it will create

Pages => Person > Person (Index, Create, Edit)

How can I stop this from happening?

Thanks

Zak

@gdlcf88
Copy link
Member

gdlcf88 commented Sep 11, 2022

I agree that the second "Person" folder is redundant.

  • Files of aggregate root (Person) are better placed in Pages/Persons.
  • We could place files of sub-entities (like PersonPet) in Pages/Persons/PersonPets.

If you want, you are welcome to create a PR to do these changes:

  1. Change the folder structure as described above.
  2. Implement the sub-entity management UI generation. It's different from the UI of an aggregate root. For example, we should use persons.person.get(id).pets instead of persons.personPet.getList().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants