Mixing Table Per Type and Table Per Hierarchy Inheritance
Posted: Wed 04 May 2011 16:17
How to perform something similar to http://www.insidercoding.com/post/2010/ ... tance.aspx?
Here my scenario:
- I have a provider model were I have a base class Provider (contains all common properties). Maps to one table on the Db;
- Then I have 4 providers: Domains, Payments, Dns and Certificates. Earch maps to one table with the particular properties for each context;
I've tried several ways, also reading the supplied article, and I can't get the model to validate properly.
Is it possible to do this?
Here my scenario:
- I have a provider model were I have a base class Provider (contains all common properties). Maps to one table on the Db;
- Then I have 4 providers: Domains, Payments, Dns and Certificates. Earch maps to one table with the particular properties for each context;
I've tried several ways, also reading the supplied article, and I can't get the model to validate properly.
Is it possible to do this?