I’m trying to create a solution with layered architecture and self tracking entities.
I used the Entity Framework C# POCO Entity Generator i download from Extensions Online Gallery.
I separated the context.tt with the entities.tt on they’re own class libraries.
Mapped the entities.tt to the Model. Now i need to make these classes inherit from a base class i created in another class library. Unfortunately i know nothing about changing the T4 template. Can someone help me on this problem to continue?
Thank you.
In your tt file search for
And then look for a line that has
Then add your interface to the end of it.