User456
User456

Reputation: 103

EF Core - Design database entitiesA that belong to other entitiesA

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

Upvotes: 0

Views: 42

Answers (1)

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

Upvotes: 1

Related Questions