I would to from my data project generate some manager class in my business project.
Is it possible to use fileManager.StartNewFile to generate a cs file in another project?
I have tried prepending '../../' to the file names without any luck. While I recognize I could copy the database.tt to another project and re-run it seems that I would then also need references to entity framework etc. in that project as well. Similarily, to put model class in my model project/layer i had to copy the database.tt et. al. to the model project.
Ideally, I want 1 database.tt in data project then output manager classes to my business layer and model class to my model project. The project naming is consistent i.e. App.Business, App.Model, App.Data
thoughts?
Comments: just fyi, i had to download to view the video as it did not run on the web page...no biggy I watched the video, and it shows that you have to copy the tt files to each project where you want files generated. This is possible and works. I was hoping that you may have found a way to leave the tt file in one project and have the results copied to another project. i.e. leave the tt file in the data project however have the model classes placed in the model project (thus saving copying the tt files between all the projects).
Is it possible to use fileManager.StartNewFile to generate a cs file in another project?
I have tried prepending '../../' to the file names without any luck. While I recognize I could copy the database.tt to another project and re-run it seems that I would then also need references to entity framework etc. in that project as well. Similarily, to put model class in my model project/layer i had to copy the database.tt et. al. to the model project.
Ideally, I want 1 database.tt in data project then output manager classes to my business layer and model class to my model project. The project naming is consistent i.e. App.Business, App.Model, App.Data
thoughts?
Comments: just fyi, i had to download to view the video as it did not run on the web page...no biggy I watched the video, and it shows that you have to copy the tt files to each project where you want files generated. This is possible and works. I was hoping that you may have found a way to leave the tt file in one project and have the results copied to another project. i.e. leave the tt file in the data project however have the model classes placed in the model project (thus saving copying the tt files between all the projects).