Reverse Engineer code first generated code inherition

Jul 30, 2014 at 6:52 AM
When I generate Model classes using Entity framework power tools, it doesn't inherit from Entity class. I gone ahead and configured the T4 template class to basically inherit from Repository.Patter.Ef6. Am I doing right?

When I checked Northwind sample example, it has it already inheriting from it.
Coordinator
Jul 30, 2014 at 7:14 AM

Yes, there is a T4 template in the Northwind.Entities project which will do this.


Jul 31, 2014 at 8:01 AM
Edited Jul 31, 2014 at 8:02 AM
lelong37 wrote:
Yes, there is a T4 template in the Northwind.Entities project which will do this.
Oops! I did not realize that I could use Northwind.Entities project when I had to solve the same issue for the first time. :-(
Marked as answer by lelong37 on 8/1/2014 at 10:29 AM