jbubriski / ST4bby

A POCO generator that doesn't rely on the Entity Framework.
MIT License
17 stars 8 forks source link

Combine T4's into 1 file #9

Closed codeimpossible closed 12 years ago

codeimpossible commented 12 years ago

We need to voltron this mutha.

codeimpossible commented 12 years ago

Maybe we should keep 2 files but just have a ST4bby.TT and a ST4bby.Config.TT??

jbubriski commented 12 years ago

Yeah, if we can get rid of the "SaveOuput" that would be awesome. Then replace it with the config file for the namespace, optional connection info (ideally that would be in the web.config/app.config), and anything else that will need configuring.

codeimpossible commented 12 years ago

Bah, found out today that those compile errors in the t4 will prevent a project build from happening. Not sure why that didn't dawn on me sooner.

So i'm working through that, slogging my way towards getting us into a situation where we only have the config T4 and the "Transformer".

jbubriski commented 12 years ago

So we talked about this over Skype and we decided to keep the 2nd file. However, the 2nd file is going to be ST4bby.config.ttinclude which will contain the configuration variables to setup ST4bby. Things like the default namespace, connection string info, and possibly other options.