public List<ProjectImpacts> getProjectImpactsByProjeactIDAndImpactName(String prefe , String impcName)
{
String xim = cecbContext.Impacts.First(i=>i.impt_name.Contains(impcName)).impt_reference;
IQueryable<ProjectImpacts> query = from c in cecbContext.ProjectImpacts
join b in cecbContext.Impacts on c.impt_reference equals b.impt_reference
where c.proj_reference == prefe && c.impt_reference == xim
select b.impt_name;
List<ProjectImpacts> SelectedImpacts = query.ToList(); //query.Select(refe => new ProjectImpacts { impt_reference = }).ToList();
return SelectedImpacts;
}
I'm getting an error in this query:
Cannot implicitly convert type 'System.Linq.IQueryable' to 'System.Linq.IQueryable'. An explicit conversion exists (are you missing a cast?)