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

Basic Noob Question: Taking Full Control by Extending Handlebars Generators #226

Open
glconsultingservice opened this issue Mar 23, 2023 · 2 comments
Labels
question Further information is requested

Comments

@glconsultingservice
Copy link

I have no idea how to even implement this.. I am using EF Power Tools to generate the code for my tables. I have much need to customize the output of the code. I am using the CodeTemplates folder that it created to modify what I can in the CSHarpEntityType folder and the class.hbs. But I need much more control over the class-annotations and the properties.

I see you example of how to do it, but I have no idea where to place that code. As it can't compile within my project. And how would the EF power tool know to use it.

So speak to me as if I am truly not understanding how to do this.

I have no idea how to do half of the examples you provided and make them apply to my project. I have pulled down the project, but again not sure how that helps me because the project isn't going to be used to generate the code.

I spent the last several days trying to figure it out, but I am lost...

Any help would be appreciated, thank you for you patients on my lack of understanding.

@glconsultingservice glconsultingservice added the question Further information is requested label Mar 23, 2023
@tonysneed
Copy link
Contributor

For an example of how to do this, please have a look at the classes in this repo: https://github.com/TrackableEntities/ef-core-community-handlebars/blob/master/ScaffoldingHandlebars.Tooling/MyHbsCSharpEntityTypeGenerator.cs

@glconsultingservice
Copy link
Author

glconsultingservice commented Mar 24, 2023 via email

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

No branches or pull requests

2 participants