TrackableEntities / EntityFrameworkCore.Scaffolding.Handlebars

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

[Guidance] HandleBars Block Helper? #70

Closed omatrot closed 5 years ago

omatrot commented 5 years ago

I'm trying to write a HandleBars Block Helper. This seems not supported.

To be more precise, I would like something like this helper.

tonysneed commented 5 years ago

Have you tried registering HandlebarsBlockHelper? You may need to upgrade Handlebars.Net to the latest package version.

omatrot commented 5 years ago

I would have to add code to your project to Alter ServiceCollectionExtensions to add a new method and do a pull request.

But, because Murphy's law is against me all the time, I can't get your solution to load properly in Visual Studio 2017. Net Standard 2.0 is not available in the project target. However creating a new project from scratch works like a charm...

I had enough for the day. See you tomorrow.

tonysneed commented 5 years ago

You should use Visual Studio 2019 and install the .NET Core 2.2 SDK.

Feel free to fork my sample repo, then create a new branch. You will then be able to publish the branch and create a pull request. :)