TrackableEntities / EntityFrameworkCore.Scaffolding.Handlebars

Scaffold EF Core models using Handlebars templates.
MIT License
208 stars 53 forks source link

[Feature] Customize context file name #141

Closed Hedi-s closed 3 years ago

Hedi-s commented 3 years ago

Is your feature request related to a problem? Please describe. I am using a script to do few things that couldn't be done by the scaffolding. I just discovered this project which covers everything except for the context file name. On my current project the generated files name are like ContextName.generated.cs or EntityName.generated.cs. We can customize entities file name with the entityFileNameTransformer but not for the context.

Describe the solution you'd like I would like to add a contextFileNameTransformer to handle context file name.

tonysneed commented 3 years ago

Good suggestion. I can add the feature. Or let me know if you would like to submit a PR.

Hedi-s commented 3 years ago

I will submit a pull request.

tonysneed commented 3 years ago

@Hedi-s Released: https://github.com/TrackableEntities/EntityFrameworkCore.Scaffolding.Handlebars/releases/tag/v3.8.4

Nuget package now publishing: https://www.nuget.org/packages/EntityFrameworkCore.Scaffolding.Handlebars/3.8.4