Skip to content

Easier custom renaming of entities and properties #34

@Vizehase

Description

@Vizehase

I have written Handlebars helpers for our special naming conventions. It turned out that renaming the navigation properties was pretty hard because I had to split the pregenerated names and repeat the renaming on the individual parts of the name.
A feature for giving two conversion methods would be very handy such as string CreatePropertyName(string) which takes the original field name (e.g "c_first_name") and delivers the desired property name to use in the entity class (e.g. "FirstName"). Likewise a method string CreateEntityClassName(string) that does the naming for entity types.
Maybe an interface with these two methods could be created and this service would be used by Handlebars when it finds this service (also taken into account when generating names for navigation properties).
And: I did the custom renaming of the entity types with my Handlebars helper, but the file name was not affected; how can this be accomplished?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions