EF Core 2 + Relationships between tables

0

Hello, I'm starting a project, and I started using the new EF Core for the first time because of the performasse, but there are still some things I did not find on the internet that I would like to do.

In my project I have 3 classes

Users - Base

UserRole - User rules

User Account - User Account Information

Processes - System Processes

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

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

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

I'm using the IEntityTypeConfiguration interface, to make the settings separate.

I would like to know how I make these relationships using FluentApi

    
asked by anonymous 17.05.2018 / 19:17

1 answer

0

I found a site where I detail all types of relationships

One p / one: link

A P / many: link

Many P / Many: link

Just follow the steps of each and apply to your application ...

    
20.05.2018 / 23:39