Skip to content

[Bug] AddHandlebarsTransformers entityNameTransformer name is confusing #171

@JonruAlveus

Description

@JonruAlveus

Describe the bug
In ServiceCollectionExtensions.AddHandlebarsTransformers, the second parameter (entityNameTransformer) is confusing because it's actually transforming the entity's type name, not the name of the entity itself. I was hoping to use it to transform the generated DbSet name with it, but that's not what it does.

Expected behavior
The parameter name/description should be entityTypeNameTransformer, as it is elsewhere (like HbsCSharpDbContextGenerator.GenerateDbSets)

To Reproduce
image

Screenshots
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions