Converta LINQ para SQL Query Online
from s in student
join lsl in LastStudentLevel on s.UserId equals lsl.UserId
join sl in studentLevel on lsl.UserId equals sl.UserId where sl.Session==lsl.AcadYearStr
join e in enrollment on s.UserId equals e.UserId
where e.EnrollmentAcademicYearId == lsl.AcadYearId
join c in course on e.CourseId equals c.CourseId
select new StudentInfo
{
UserID = s.UserId,
Gender = s.Gender,
FirstName = s.Fname,
LastName = s.Lname,
Funding = s.Funding,
DateOfBirth = s.Dob,
DateOfBirthDateTime = s.DobdateTime,
Email = s.Email,
LevelID = sl.LevelId,
Address = s.HomeAddress,
CourseID = c.CourseId,
CourseName = c.ShortCourseName,
AcademicYear = sl.Session,
ProgressStatus = sl.ProgressStatus,
AwardID = sl.AwardId,
IsGraduated = sl.ProgressStatus == "Completed Studies" ? true : false,
CourseDescription = c.CourseName
};
Sardor Ismoilov