Visual Studio 2012 - Can't move EF .tt files

前端 未结 3 1674
时光说笑
时光说笑 2021-02-02 16:35

I noticed in VS2012 that when you make a new EF Model (.edmx) that the DbContext is the default code generation and the .tt (T4 template) files are now nested underneath

3条回答
  •  太阳男子
    2021-02-02 16:53

    Instead of editing project files, I add a EF model of the same name to the project, close the solution, copied the model files from the other project, and reopen the solution. I change the namespace in the edmx properties and then recompile the model.

提交回复
热议问题