我们可以使用ModelBuilder将一个实体映射到2个表吗? [英] Can we use a ModelBuilder to map one entity to 2 tables?

查看:113
本文介绍了我们可以使用ModelBuilder将一个实体映射到2个表吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看来我们只能使用ModelBuilder将一个实体映射到一个表。如果我们有1:1的关系,我们可以将多个表映射为EDMX中同一实体的一部分。这是我的误解,还是这个意图不支持
或者这只是一个疏忽?

解决方案

嗨吉米,


 


这在CTP4中不受支持,但我们希望在CTP5中启用它。如果它没有进入CTP5,我们将在RTM时支持它。


 


~Rowan


 


It appears that we can only map one entity to one table using the ModelBuilder. Provided we have a 1:1 relationship, we can map more than one table to be part of the same entity in EDMX. Is this a misunderstanding on my part or is this intended to not be supported or is this just an oversight?

解决方案

Hi Jimmy,

 

This is not supported in CTP4 but we hope to have it enabled in CTP5. If it doesn’t make it into CTP5 it will be supported when we RTM.

 

~Rowan

 


这篇关于我们可以使用ModelBuilder将一个实体映射到2个表吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆