I want to get list of VisaCodeIds from visaConfigurationDocuments Table and join with visaCodes Table to get VisaCodeName and I am getting this error for the query below:
public List<VisaCodesNamesDto> GetVisaCodesNames(List<VisaCodesNamesInputDto> input)
{
var result = (from visaConfigurationDocuments in Context.VisaConfigurationDocuments
join visaCodes in Context.VisaCodes
on visaConfigurationDocuments.VisaCodeId equals visaCodes.VisaCodeId
where (input.Any(x => x.VisaId == visaConfigurationDocuments.VisaId && x.VersionNo == visaConfigurationDocuments.VersionNo))
select new VisaCodesNamesDto
{
VisaCodeName = visaCodes.NameAr,
VisaId = visaConfigurationDocuments.VisaId,
VersionNo = visaConfigurationDocuments.VersionNo
}).ToList();
return result;
}
}
List<VisaCodesNamesInputDto>
? Then think about the text of the error message. I'm sure you'll piece it all together. – Sam Axe