我有类似下面实体框架的关系问题“无法确定的主要终点......”
Class One
{
ID (PK),
Property 2;
}
Class Two
{
ID (PK),
One_ID (FK),
Nullable_One_ID (FK)
}
虽然节省我收到错误' Unable to determine the principal end of the 'x' relationship. Multiple added entities may have the same primary key.'
我试了很多组合WithOutPrincipal
和两班, WithOutDependant
等,但没有运气,请指导我正确的关系。
可以有1个或2'类Two's,但不为0或2个以上? – 2014-11-04 15:53:07