none
How Polymorphic Association Problem with TPC Inheritance Mapping is Solved in Professional Projects? RRS feed

  • Question

  • Hi all

    While designing & developing a data-centered project using Entity Framework, I have spent too much time to find a way to accomplish one of the following but have come across nothing practical.

    1. To find an alternative to implement "Polymorphic Association" which cannot be implemented along with "TPC Inheritance Mapping" in EF - since this kind of inheritance mapping fits well with the logical design of my model, or
    2. To find a way to improve the poor performance of "TPT Inheritance mapping" which seems to me is the only practical alternative to TPC

    TPH Inheritance Mapping, in my opinion, does not make sense from the "database design" and "data validation" point of view.

    Besides, since other parts of the project rely almost totally on Microsoft products, I do not tend to switch to other ORM frameworks such as NHibernate.

    Now I would like to ask those of you who are professional software developers and have possibly faced this problem, to please advise me about any other available options/solutions. How is this issue usually solved in professional environments?

    Appreciate any guidance in advance
    K. Saeedi


    There are no closed doors, only unopened ones.

    Monday, April 2, 2012 12:28 PM

All replies