protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
modelBuilder.Entity<Student>()
.HasMany(x => x.Professors)
.WithMany(y => y.Students)
.Map(x =>
{
x.ToTable("ProfessorsStudentsRelation");
x.MapLeftKey("SerialId_P");
x.MapRightKey("SerialId_S");
});
}