EF Core many to many relationships are a little bit trickier, since we can’t solely rely con conventions. Still there are only two steps that you have to be aware of when configuring a many to many relationship using EF Core:

  1. Add an entity class for the relationship
  2. Define two one to many relationships in the OnModelCreating() method of your DbContext class.
    In this video we get through all the needed steps, so after watching it you’ll get the hang of many to many relationships in EF Core

#core #.net

EF Core Many to Many relationships
1.45 GEEK