Closed meurig closed 5 years ago
Sorry for my late response. The EF Core CLI does not appear to have a flag in the dotnet ef dbcontext scaffold
command for suppressing the connection string warning. However, the easiest way to do this is simply to remove {{{on-configuring}}}
from the DbContext.hbs file.
Please re-open if this does not answer your question or if you have further questions.
I can see that GenerateOnConfiguring takes a very useful looking option: suppressConnectionStringWarning, which prevents a warning (That I'm trying to suppress) from being written.
But, the IServiceCollection.AddHandlebarsScaffolding method that I'm using doesn't appear to take any such option.
Is there another way that I'm missing to get that option turned on?
Many thanks!