I have the following doubt, I hope you can help me. I have two tables, one of subjects and another that assigns the subjects to the students through their id. "Not all subjects have students assigned." They ask me to show with linq those subjects that do not have students assigned. In sql I would do it with outer join but in linq I do not know how to do it. I have the following code:
var matsin = from m in dbContext.Materias
join am in dbContext.AlumnoMaterias
on m.IdMateria equals am.IdMateria
where m.IdMateria != am.IdMateria
select new
{
Nombre = m.Nombre
};