I am having trouble with understanding and implementing a many to many repationship using the FLuent API and EF Core.
I have looked at this question and set up my relati
For EF Core 5.0 and up, you may (finally) use direct relationships for many-to-many:
modelBuilder .Entity() .HasMany(p => p.Tags) .WithMany(p => p.Posts) .UsingEntity(j => j.ToTable("PostTags"));
Source: Relationships - EF Core | Microsoft (many-to-many)