I have two Contact (Man) and Woman tables. The man can have several women and a woman is for a man.
public class Contato {
public int id { get; set; }
public String usuario { get; set; }
public String nome { get; set; }
public String senha { get; set; }
public List<Mulher> listaMulher { get; set; }
}
public class Mulher
{
public int idM { get; set; }
public Contato id { get; set; }
public String nome { get; set; }
public String formacao { get; set; }
}
Would it be this way? But what about the woman how can I add a key to the woman? How would that look in the main class?