Page 1 of 1

referential constraint properties in ef core

Posted: Tue 08 Jun 2021 08:27
by qq409665701
I hava a problem.
tool: entity developer 6.11.1218 trial
task: edml to efml
Now, I have parse all Classes and Associations. But some OneToMany association have debug in efml. See image:3.jpg.(efml)
It's ok in edml, like image 2.jpg. and edml's xml in 1.jpg.(edml)
The efml's xml like 4.jpg that i generate.(efml)

How to create OneToMany association with custom define properties in efml?
It shouldn't be 0..1 to * , should be 1 to * in 5.jpg.
Please give us your advice.

image links from baidu disk:
link: https://pan.baidu.com/s/1LABtp3eCYuya-ix_4AXUPQ password: 6js5 复制这段内容后打开百度网盘手机App,操作更方便哦

Re: referential constraint properties in ef core

Posted: Tue 08 Jun 2021 12:37
by Shalex
Could you please send your images via our contact form?

Re: referential constraint properties in ef core

Posted: Tue 08 Jun 2021 14:32
by qq409665701
Shalex wrote: Tue 08 Jun 2021 12:37 Could you please send your images via our contact form?
I had done now.

Re: referential constraint properties in ef core

Posted: Fri 11 Jun 2021 18:10
by Shalex
1. The error on your screenshot is "... Properties do not have matching types: '...', '...' ". Please check the data types of properties on both sides of your association. The data types have to be the same.

2. If the property on one end has Nullable=True, the association is "0..1 to *". In the case of Nullable=False, the association would be "1 to *".