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

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
PixelHunter
Posts: 17
Joined: Thu 29 Jun 2017 11:07

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

Post by PixelHunter » Mon 07 May 2018 16:54

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

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

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

Post by Shalex » Thu 10 May 2018 16:01

Please refer to viewtopic.php?t=35595.

Post Reply