Do you have entity framework installed?
Do you have an app.config file?
In the app.config file, is there a named connection string in it?
In the .tt file, is the named connection string mentioned in ConnectionStringName ?
Do you have an app.config file?
In the app.config file, is there a named connection string in it?
In the .tt file, is the named connection string mentioned in ConnectionStringName ?