开发者

Table Per Hierarchy based on fields in the Navigation Property

开发者 https://www.devze.com 2023-02-01 11:13 出处:网络
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 n

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消