Hi
I've tried to create a 1 to 1 relationship between 2 entities, and the modeller lets me do this but I get the error:
DataAccess.Persistence.Invoicing.csdl(201,6) : error 0113: Multiplicity is not valid in Role 'ABillingProcessData' in relationship 'ABillingDocumentSource_ProcessData_ABillingProcessData_DocumentSource'. Because the Dependent Role properties are not the key properties, the upper bound of the multiplicity of the Dependent Role must be *..
at run time (and also in VS when compiling the edmx)
If I set it to be a 1 to many then it works fine.
Various posts on forums indicate that 1 to 1's require an extra hint to be given to the model (via fluent!) to tell it which is the primary side of the relationship. this is not possible in LLBLGEN or in the VS EF modeler.
eg
http://stackoverflow.com/questions/18724964/entity-framework-1-to-1-relationship-using-code-first-how
Have you come accross this issue, and do you have any suggestions as obviously a 1 to many is a poor substitute for a 1 to 1. Note that I have "Emit FK fields" as True! which seems to affect EF for some reason (according to some articles)