我有 3 个实体BaseUser
:AuthenticationUser
和User
。AuthenticationUser
继承自BaseUser
和User
继承自AuthenticationUser
。User
实体具有二进制(照片)类型的标量属性,因此我想将User
实体拆分为User
and UserPhoto
。
我完全按照这篇好文章所说的去做:http: //www.deveducate.com/blog/post/2010/12/14/Entity-Framework-Modeling-Table-Splitting.aspx
这是我的 edmx 的图像:
当我验证 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.
这个错误的含义是什么?
知道如何解决这个问题吗?