I am struggling to create a One-to-One relationship in EF4.I keep getting errors like this:
Each of the following columns in table XXX is mapped to multiple conceptual side properties:
XXX.Id is mapped to <XXXYYY.YYY.YYYId, XXXYYY.XXX.Id>
Given I have a classes Person
and PersonDetail
that relate to tables of the same name, and the Id's are the same in both tables (I think EF4 assumes this as default?) What do I do in my edmx files to define this relationship?
I only need Person
have a PersonDetail
property, not the other way round.