How do I force VS to choose a custom template when creating EF models?
Details:
I built a custom template for generating EF entity classes from models. The solution has many projects with their own models and it is likely more will be added over time.
In order to prevent bugs in the future, I'd like to force VS to choose my template by default when creating EF models in the future. I'd prefer this to be at the Solution level, so that the change is part of the repository.
I have the template exported as a VS Item Template that is basically a clone of the default EF 6.x DbContextGenerator
with the appropriate values replaced. I'm able to run it manually by using the "Add Code Generation Item..." option on the model designer view.