Home > Enterprise >  EF Core - Design database entitiesA that belong to other entitiesA
EF Core - Design database entitiesA that belong to other entitiesA

Time:10-28

How do I design this below scenario and I'm using code first Approach :

Organizations is possessed by other Organizations

Branches is possessed by other Organizations, also by other branches

Building is only be possessed by Branches


Is this :

1 to many

or 1 to 1

or many to many

or something else ?

Because I'm thinking of the below design ?

Organizations 1-n Branch

Branch 1-n Vehicle

CodePudding user response:

You can represent your scenary with this diagram if you choose Database First. See here

  • Related