I\'m trying to set up a many to many relationship in EF code first but the default conventions is getting it wrong. The following classes describes the relationship:
modelBuilder.Entity() .HasMany(a => a.Products) .WithMany() .Map(x => { x.MapLeftKey("Account_Id"); x.MapRightKey("Product_Id"); x.ToTable("AccountProducts"); });