Unable to specify abstract classes in TPH hierarchy in Entity Framework 4
Posted
by Lee Atkinson
on Stack Overflow
See other posts from Stack Overflow
or by Lee Atkinson
Published on 2010-05-28T10:30:35Z
Indexed on
2010/05/28
15:22 UTC
Read the original article
Hit count: 393
Hi
I have a TPH heirachy along the lines of:
A->B->C->D
A->B->C->E
A->F->G->H
A->F->G->I
I have A as Abstract, and all the other classes are concrete with a single discriminator column.
This works fine, but I want C and G to be abstract also. If I do that, and remove their discriminators from the mapping, I get error 3034 'Two entities with different keys are mapped to the same row'. I cannot see how this statement can be correct, so I assume it's a bug in some way.
Is it possible to do the above?
Lee
© Stack Overflow or respective owner