Entity Framework Core Many to Many change navigation property names
问题 I have a table called "LogBookSystemUsers" and I want to setup many to many functionality in EF Core 5. I almost have it working but the problem is my ID columns are named SystemUserId and LogBookId but when EF does the join it tries to use SystemUserID and LogBookID . This is my current configuration code: modelBuilder.Entity<SystemUser>() .HasMany(x => x.LogBooks) .WithMany(x => x.SystemUsers) .UsingEntity(x => { x.ToTable("LogBookSystemUsers", "LogBooks"); }); I tried this: modelBuilder