日期:2014-05-20 浏览次数:20786 次
var a = (from R in Result join T in SuccessionGradeChains on R.GradeCode equals T.GradeCode into os from TT in os.DefaultIfEmpty() select new{ R.GradeCode, R.DisciplineCode, SuccessorGradeNo = (TT == null ? null : TT.SuccessorGradeNo) });
var a = (from R in Result join T in SuccessionGradeChains on new{GradeCode = R.GradeCode,GradeName=R.GradeName} equals new{ GradeCode =T.GradeCode,GradeName=T.GradeName} into os from TT in os.DefaultIfEmpty() select new{ R.GradeCode, R.DisciplineCode, SuccessorGradeNo = (TT == null ? null : TT.SuccessorGradeNo) });