When I generate the Context using EF Power Tools reverse engineering, it created a class with my DB name in a file with my DB name. I was able to modify the T4 template to use a static name for the Context class name. However, I'd like to use the same static name with the class's filename. How can I do this?
I don't think it's possible to customize the generated filenames in the current version.
Unless you want to try hacking the PowerTools source code, your best bet is probably just to refactor the class filename by pressing F2 after generation.
If you need to refactor a bunch of files, it may be worth it to write a small script that renames the classes, and their filenames, and run it after each EF generation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With