I have two tables: "Person" and "Details". Person should have one to one relation with Details. I have two options:
- Write DetailsId in Details table and make it FK to Details.Id(PK);
- Make Details.PersonId as PK and FK at the same time to Person.Id;
In both cases relationship is one to one. Can you explain which one is better and in what cases?
EDIT:
I'm using entity framework and want to get Detail like this: Person.Detail, not Person.Details.First()