Table Per Hierarchy based on fields in the Navigation Property
I have an entity which has a navigation property. I would like to define derived entities from the base entity using a field in the navigation property as the discriminator. Is this possible. I could not fi开发者_StackOverflow社区nd a way to do this in the designer.
No it is not possible with navigation property. It should be possible to map two tables in 1:1 relation into single entity. You can try to combine it with table per hiearchy mapping. I'm interested if it works but i don't have chance to try it now.
精彩评论