Page 1 of 1

Problem creating a 1:1..0 (One:One or Zero) Association

Posted: Mon 07 May 2018 16:54
by PixelHunter
Hi DevArt Team,

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
I want to enter now the following association:

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

Re: Problem creating a 1:1..0 (One:One or Zero) Association

Posted: Thu 10 May 2018 16:01
by Shalex
Please refer to viewtopic.php?t=35595.