In my database I have 2 tables A and B
A has columns ID, Title, and B_ID. B_ID allows nulls. B has columns ID and SomeText ID in both is primary key identity A also has a unique index on B_ID
This seems like a basic way to say that A can have 0 or 1 B rows associated with it, and each B is associated with exactly 1 A. Is that correct so far ?
When I create an ADO.NET Entity Framework entity model of that database, A has a navigation property to B which has multiplicity 0..1. That makes sense.
Entity B has a navigation property to A, but the multiplicity on that is *(Many).
I guess my database definition won't let one B get associated to many A's, so maybe it's not a problem, but is there a way to define the database and/or modify the entity model so that the navigation property from B to A has a Multiplicity of 1 ?