ErikEJ / EFCorePowerTools

Entity Framework Core Power Tools - reverse engineering, migrations and model visualization in Visual Studio & CLI
MIT License
2.19k stars 298 forks source link

Code Template Handlebars Not an Issue but "how can I question." #1749

Closed glconsultingservice closed 1 year ago

glconsultingservice commented 1 year ago

I want to modify the basic functionality of the handlebar. I have pulled the git repo and see where I can update it. But how do I get your Tool to use my handlebar project vs the standard one.

ErikEJ commented 1 year ago

Not possible. Have you considered the t4 templates?

glconsultingservice commented 1 year ago

When using T4 I get this error message in the output window.

System.ArgumentException: Unsupported code generation mode for T4 templates: EFCore6 at string EFCorePowerTools.Helpers.ReverseEngineerHelper.DropTemplates(string optionsPath, string projectPath, CodeGenerationMode codeGenerationMode, bool useHandlebars, int selectedOption) at async Task EFCorePowerTools.Handlers.ReverseEngineer.ReverseEngineerHandler.GenerateFilesAsync(Project project, ReverseEngineerOptions options, string missingProviderPackage, bool onlyGenerate) at async Task EFCorePowerTools.Handlers.ReverseEngineer.ReverseEngineerHandler.ReverseEngineerCodeFirstAsync(Project project, string optionsPath, bool onlyGenerate, bool fromSqlProj)

From: Erik Ejlskov Jensen @.> Sent: Thursday, March 23, 2023 1:56 PM To: ErikEJ/EFCorePowerTools @.> Cc: Glen Lewis @.>; Author @.> Subject: Re: [ErikEJ/EFCorePowerTools] Code Template Handlebars Not an Issue but "how can I question." (Issue #1749)

Not possible. Have you considered the t4 templates?

— Reply to this email directly, view it on GitHubhttps://github.com/ErikEJ/EFCorePowerTools/issues/1749#issuecomment-1481733631, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWA6TQWUQSRWPYZAISOV3Z3W5SMDPANCNFSM6AAAAAAWFRWYMI. You are receiving this because you authored the thread.Message ID: @.**@.>>

ErikEJ commented 1 year ago

You can only use them with EF Core 7