About Multiplicity in Model first: Does Many mean '0..*' or '1..*'?

232 views Asked by At

I'm new to database and Entity Framwork, when I use Model first to build a database, there are three choices, so here Many means 0..* or 1..* ? If a relationship is one to many, here Many is kind of 0..* , does it mean a foreign key here is nullable?

Thanks.

1

There are 1 answers

2
David MacCrimmon On

0..* means 0 to many so there doesn't need to be an entry in the foreign table that matches.

1..* means 1 to many so there must be an entry in the foreign table.