edmx验证会引发有关碰撞主键的错误

时间:2012-06-27 21:31:15

标签: c# .net entity-framework entity-framework-4 edmx

我有3个实体:BaseUserAuthenticationUserUserAuthenticationUser继承自BaseUserUser继承自AuthenticationUserUser实体具有二进制类型的标量属性(照片),因此我想将User实体拆分为UserUserPhoto

我完成了这篇好文章的内容:http://www.deveducate.com/blog/post/2010/12/14/Entity-Framework-Modeling-Table-Splitting.aspx

这是我的edmx图片: enter image description here

当我验证edmx时,我不断收到此错误:

Error 3033: Problem in mapping fragments starting at line 13058:EntitySets 'UserPhotoes' and 'BaseUsers' are both mapped to table 'T_USER'. Their primary keys may collide.

此错误的含义是什么?
知道如何解决这个问题吗?

0 个答案:

没有答案