我有 3 个实体BaseUser:AuthenticationUser和User。AuthenticationUser继承自BaseUser和User继承自AuthenticationUser。User实体具有二进制(照片)类型的标量属性,因此我想将User实体拆分为Userand 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.
这个错误的含义是什么?
知道如何解决这个问题吗?