I have a problem creating a 1:1..0 (One:One or Zero) association. I have
Code: Select all
TableA
Id
Name
TableB
Id
Date
TableAId as relationship field (can be Null)
---
TableA as Navigation property
Code: Select all
TableA TableB
Id TableAId
1 1..0
But I get the following error during the valid check:
Multiplicity is not valid in Role 'TableB' in relationship 'TableA_TableB'. Because the Dependent Role properties are not the key properties, the upper bound of the multiplicity of the Dependent Role must be *.
Only a Id - Id 1:* association works without a problem, but thats not what I want.
I use the newest ED version 6.2.487, EF 6 model, Code First.
Whats wrong?
Thank you
Florian