Entity Framework 1to1 relationship via association table not working in EDMX

c# edmx entity-framework entity-framework-6 sql-server

Accepted Answer

There is a "bug" in the EF design as a whole: Entity Framework version 4.6.1x zzz-8 zzz.

Therefore, EF does not and will not like it even though we (and the RA models) know that it is a 1-1 relationship due to a Potential Key Restraint. Bad luck.

Among the "solutions" are:

  1. modifying the model to a form that EF can understand (EF understands Code First, not RA). Granted, this might point to a "problem" with the chosen RA model, but that is unrelated to the inquiry.

  2. Live with the improperly created multiplicity rules and "use with caution"; the grunt work can be wrapped, but it must be added manually outside of the automatically formed model.

  3. Others, I wonder?

Shameless pitch for unanswered queries that address the same essential lack-of-feature

8
5/23/2017 12:24:38 PM

Popular Answer

ZZZ_tmp


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow