loresoft / PLINQO.EntityFramework.DbContext

Entity Framework DbContext templates for CodeSmith Generator
7 stars 7 forks source link

Generate Entity Inheritance #7

Open whibdev opened 9 years ago

whibdev commented 9 years ago

I'm trying to configure the entities (Entity.Generated) to generate inherited relationships - is there a built-in way to do that?

My goal is to do the following: if a table has a single primary key that is also a foreign key with a carnality of one-to-one I want it to generate an inheritance from the related table name. It would also need to be mapped properly in the generated maps too.