Hi team
My question is about how to achieve inheritance in this Framework For example I have a domain calls Instrument then i have the following sub class says GoldInstrument OilInstrument ExchangeTradedFundInstrument
I think on domain level, each type should have their own table
The below is the class defintion
public class Instrument : Entity, IHasCreationTime public class Etf : Instrument
It seems when it comes to this model, i can't define Super class and sub class relationship
Would you please advise. Thanks a lot
Regards Billyl
1 Answer(s)
-
0
Hi,
You can use TPT or TPH approaches. This article can help you <a class="postlink" href="https://blogs.msdn.microsoft.com/alexj/2009/04/14/tip-12-how-to-choose-an-inheritance-strategy/">https://blogs.msdn.microsoft.com/alexj/ ... -strategy/</a>.
Please let us know if you face any problems.