referential constraint properties in ef core

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
qq409665701
Posts: 9
Joined: Mon 10 May 2021 07:48

referential constraint properties in ef core

Post by qq409665701 » Tue 08 Jun 2021 08:27

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,操作更方便哦

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

Re: referential constraint properties in ef core

Post by Shalex » Tue 08 Jun 2021 12:37

Could you please send your images via our contact form?

qq409665701
Posts: 9
Joined: Mon 10 May 2021 07:48

Re: referential constraint properties in ef core

Post by qq409665701 » Tue 08 Jun 2021 14:32

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

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

Re: referential constraint properties in ef core

Post by Shalex » Fri 11 Jun 2021 18:10

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 *".

Post Reply