This is my SQL query:
select
S.student_No,
coalesce(P.Name,'0'),
P.Surname
from
Person as P
join
Student as S
on P.Id = S.Person_Id
I want to convert it LINQ , i did it except coalesce function,
from P in cbu.PERSON
join S in cbu.STUDENT on P.ID equals S.PERSON_ID
select new
{
S.Stundent_No,
P.Name,
P.Surname,
};
how can I use coalesce in this linq query