2
I have the classes:
profissional
{
int id;
int idUnidade;
string nome;
}
unidade
{
int id;
string nome;
}
profissionalUnidade
{
string profissionalNome;
string unidadeNome;
}
I’m making an appointment like this:
listaProfissionalUnidade = (from p in profissionais
join u in unidades on p.idUnidade = u.id
select new profissionalUnidade()
{
profissionalNome = p.nome,
unidadeNome = u.nome
}).ToList();
So he lists me all the professionals who have some connection with a unit. However, I also need to be returned to me, professionals who have no ties.
How should I do?
the code worked well with two tables, have as you post an example with three or more tables?
– Italo Rodrigo
@Italorodrigo, posted.
– Marco Souza