Base solution for your next web application
Open Closed

RAD tool navigation property naming #5356


User avatar
0
[email protected] created

Hi,

I am using the RAD tool to generate entities. The naming of the generated navigation property DTO classes and angular lookup table components, is causing a bit of trouble.

Whenever you have two or more entities that contain a navigation property to one and the same entity, the RAD tool wil generate duplicate classes and components.

E.g. if you have 2 entities EntityA and EntityB that both have a navigation property to EntityC:

  • the duplicate DTO classes will both be called "EntityCLookupTableDto"
  • the duplicate components will be called "EntityCLookupTableModalComponent"

...I know you can configure swagger with a custom schema ID that uses full class names but I don't really like this option.

Wouldn't it be a good idea to change the RAD tool and generate DTOs and components like this?

  • EntityAEntityCLookupTableDto

  • EntityBEntityCLookupTableDto ...

  • EntityAEntityCLookupTableModalComponent

  • EntityBEntityCLookupTableModalComponent ...

In my opinion this is much cleaner than the full type name and no duplicate classes or components are possible...

Thanks in advance, Kind regards,

Jan Asselman


1 Answer(s)
  • User Avatar
    0
    yekalkan created

    You can use one of them and delete the other one, if you don't plan to customize one of them.

    Wouldn't it be a good idea to change the RAD tool and generate DTOs and components like this?

    • EntityAEntityCLookupTableDto

    • EntityBEntityCLookupTableDto ...

    • EntityAEntityCLookupTableModalComponent

    • EntityBEntityCLookupTableModalComponent

    We'll discuss this.