New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How T4 generates multiple files #1825
Comments
Look at this example https://github.com/linq2db/linq2db/blob/master/Tests/T4.Model/MultipleFiles.tt |
This example is not a data-independent model file directly from the database |
So, you need to generate a data model from database but every table should be in a separate file. Right? |
@igor-tkachev Yeah, that's it |
This is, although not too tough, not an entirely simple task, at least as far as I can see. Put the file in your project directory (not the LinqToDB.Templates directory). Then in your .tt-file:
There is room for improvement, but you get the gist. |
@Drapondur , works awesome. Thanks a lot! |
Thanks ademchenko. Yes it seems to work except for the case that files do not get deleted properly.
Have fun! |
I can't run with the latest one. Can you help me? |
No description provided.
The text was updated successfully, but these errors were encountered: