EF Core 2 + Relationships between tables

Asked

Viewed 552 times

0

Hello, I am starting a project, and I started using for the first time the new EF Core, for the sake of performance, but still have some things that I did not find on the internet that I would like to do.

In my project I have 3 classes

Users - Base

User - User rules

User account - User account information

Processes - System processes

User + roles = 1 user can have several roles, and 1 role can be of several users; N Relationship : N

User + Account = 1 user can have 1 account, and 1 account can be 1 user; Relationship of 1 : 1

User + Process = 1 user can have several processes, and 1 process can be 1 user; N Relationship : 1

I’m using the Ientitytypeconfiguration interface, to make separate settings.

I would like to know, how I do these relationships using Fluentapi

1 answer

0


Browser other questions tagged

You are not signed in. Login or sign up in order to post.