我正在尝试将嵌套连接sql查询转换为linq。我需要一些帮助才能将查询转换为linq。我正在使用vb.net。 这是我的SQL查询:
SELECT tblJobSkillMatrix_JS.fldJobTitleID,
tblRSCFMainLevel.fldRSCFMainLevel,
tblRSCFSkill.fldRCSFSkill,
tblSkillLevelDefinition.fldSkillLevelNum,
tblJobSkillMatrix_JS.fldPriorityJobSkill
FROM ((tblJobSkillMatrix_JS
INNER JOIN (tblRSCFMainLevel
INNER JOIN tblRSCFSkill
ON tblRSCFMainLevel.fldRSCFMainLevelID = tblRSCFSkill.fldRSCFMainLevelID)
ON tblJobSkillMatrix_JS.fldRSCFSkillID = tblRSCFSkill.fldRSCFSkillID)
INNER JOIN tblSkillLevelDefinition ON
tblJobSkillMatrix_JS.fldSkillLevelID = tblSkillLevelDefinition.fldSkillLevelID)
INNER JOIN tblRSCFSkillGroupLevel ON
(tblRSCFSkillGroupLevel.fldRSCFSkillGroupLevelID = tblRSCFSkill.fldRSCFSkillGroupLevelID)
AND (tblRSCFMainLevel.fldRSCFMainLevelID = tblRSCFSkillGroupLevel.fldRSCFMainLevelID)
WHERE (tblJobSkillMatrix_JS.fldJobTitleID='F74F5BCA-F33A-4AE1-9825-16B05AB274F4')
AND (tblRSCFMainLevel.fldRSCFMainLevel='People skills')
ORDER BY tblJobSkillMatrix_JS.fldPriorityJobSkill;