0
Next, I’m modeling the domain class of a system and I’m having a hard time understanding certain things from Entity Framework
, so I hope you can help me, aiming that I’m following the idea of Code First
:
In a relationship of N
for M
, Doing this, will it generate a new table automatically or will I have to do it manually? If manually, how do I make this relationship?
public class Aluno {
public int Id { get; set; }
public virtual ICollection<Professor> Professores { get; set; }
}
public class Professor {
public int Id { get; set; }
public virtual ICollection<Aluno> Alunos { get; set; }
}