I have a problem when converting sql to query c# about left join here is sql query
select mTeacher.Id as Id, mTeacher.Name as Name, mStudents.Name as Addresses
from Teachers mTeacher
left join Students mStudents
on mStudents.TeacherId=mTeacher.Id
where mStudents.Name = 'some of word'
and here is i converted to sql to query c#
var zzz= from mTeacher in repo.Teachers
join mStudents in repo.mStudents on mTeacher.Id equals mStudents.TeacherId into a
from y1 in a.DefaultIfEmpty()
where mTeacher.Name.Equals("someofword") or mStudent.Name.Equals("somofword")
select new { mTeacher.Id,mTeacher.Name};
there will be student will have null value mStudent.Name.Equals("somofword") i got something like this how to handle this