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;
}
我在此查询中遇到错误:
无法将类型“System.Linq.IQueryable”隐式转换为“System.Linq.IQueryable”。存在显式转换(您是否缺少演员表?)