See the following post for some background:
Entity framework one to zero or one relationship without navigation property
I had always thought that Fore
I think you were right (provided that I understand you right). [ForeignKeyAttribute]
is used on the coresponding foreign key. Not on the primary key of your linked object.
This is my object, and the foreign key is DeferredDataId
Neither the Id
within your object is the foreign key (it's primary key) nor the ID
of the linked object is the foreign key (it's the primary key of the other side of the relation)
Hope I understood you correctly :) Because I'm not sure.