有人可以告诉我以下查询的正确语法是什么吗?
我在以下位置从“equals”关键字开始出现设计时编译错误:
&& a.applicationid equals ga.applicationid
出现以下错误:“查询正文必须以 select 子句或 group 子句结尾”
我理解错误的含义,但我看不到语法错误是什么......
public static List<ApplicationConfigurations> GetAppConfigs()
{
try
{
using (wmswebEntities DbContext = new wmswebEntities())
{
IEnumerable<ApplicationConfigurations> myAppConfigs = new IEnumerable<ApplicationConfigurations>();
myAppConfigs = (from a in DbContext.ApplicationConfigurations
join ga in DbContext.groupapplicationconfigurationslk on a.configurationid equals ga.configurationid
&& a.applicationid equals ga.applicationid
join g in DbContext.Groups on g.groupnumber equals ga.groupnumber
where a.ActiveFlag == true
&& ga.ActiveFlag == true
&& g.ActiveFlag == true
select
a.applicationconfigurations,
g.groupnumber).ToList();
return myAppConfigs;
}
}
catch (Exception ex)
{
throw ex;
}
}