Quantcast
Channel: EntityFramework Reverse POCO Code First Generator
Viewing all articles
Browse latest Browse all 1642

Created Unassigned: Generate files in another project [77]

$
0
0
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?

Viewing all articles
Browse latest Browse all 1642

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>