Model.edmx seems to be hard coded in Default T4 Template ?

Sep 18, 2012 at 4:05 PM

Hi,

I am trying to put together a Model Based NO MVC app. Following good practice I rename my EDMX to that of the DB and this immediately caused an error. It seems that the TT file was looking for "Model.edmx":

string inputFile = @"Model.edmx";

I renamed my EDMX to Model.edmx and it works.

Thoughts???

Thanks,

Ed

Sep 18, 2012 at 4:24 PM
Edited Sep 18, 2012 at 4:26 PM

Typical, posting before reading to the end of the Help section :(

"The T4 template is set up to transform a .edmx file called Model. If you rename the .edmx file, then you will also need to edit the T4 template to point to the new file; the reference to Model.edmx can be found near the top of the template."

It is documented ..... :) However when you load in the "default T4 Template" it sometimes runs and invokes the error before one has had the chance to recode the T4 file, which confused me.

Thanks,

Ed