Entity Framework many to many relationship using Fluent API

In Entity Framework you don't need to manually insert an entry into the join table. Even you don't need to define the join table in your setup. Whenever you add a new object to either of the tables via Entity Framework, it takes care of the rest.

It adds the required rows to the reference table and then adds a new entry to the join table.