Click here to Skip to main content
15,039,714 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
here i got a error "The type of one of the expressions in the join clause is incorrect. Type inference failed in the call to 'join'"

please solve this

viewModel = (from r in ReleaseDB.releases
join p in ReleaseDB.projects on r.ProjectID equals p.ProjectId
join q in ReleaseDB.platforms on p.Platform_Proj equals q.Name
group new { r, p, q } by new { r.EHCUCount, r.ReleaseID, r.ReleaseName, r.Revision, p.ProjectName, r.Disposition,q.Name, r.IsSubmitted, r.UserID } into grp
select new IndexRelease
ReleaseID = grp.Key.ReleaseID,
ReleaseName = grp.Key.ReleaseName,
Revision = grp.Key.Revision,
Project = grp.Key.ProjectName,
Platform = grp.Key.Name,
Disposition = grp.Key.Disposition,
EHCUCount = grp.Key.EHCUCount,
IsSubmited = grp.Key.IsSubmitted,
UserID = grp.Key.UserID


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900