How to force ADO.NET Entity Framework to regenerate code?
In Visual Studio 2017, it looks like just saving the .tt
file automatically re-runs the template, updating the entity class files.
Right click on the EDMX file and select Run Custom Tool.
There is also a command line code generation tool called edmgen (available from a VS Command Prompt).