I am going to speed up work with the first code migrations, and my project has evolved over the course of several months to the stage where there are already dozens of migrations, and I expect that even before the project closes.
Every time I use the package manager to add a hyphen, I need to make the same changes for the generated class (in particular, to change the template "dbo") to something that is contained as a global var, looking from the configuration with a helper, so I need to add a line of code to up () and down (), add a 'using' statement (move the headers to the top of the file) and replace all dbo in the generated names.)
I am sure that this is what I could do in the T4 template or something else and get the migration class generated by these changes already made, but where is the source?
source share