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: I show how this works on the video from 26:08 onwards :-) If it doesn't explain it well enough, ask me again and I will do my best to answer all your questions. Simon.
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: I show how this works on the video from 26:08 onwards :-) If it doesn't explain it well enough, ask me again and I will do my best to answer all your questions. Simon.