Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/linq/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/csharp-4.0/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
列表中的值作为linq连接条件_Linq_C# 4.0_Join - Fatal编程技术网

列表中的值作为linq连接条件

列表中的值作为linq连接条件,linq,c#-4.0,join,Linq,C# 4.0,Join,我想写一个linq,有这样的东西 from acc in container.vwAccounts orderby acc.Name ascending join p in container.Projects.Where(x => !x.Deleted.HasValue || !x.Deleted.Value) on acc.accId in p.Projects.FundingAccounts.Select(f => f.accId).toList() into j where

我想写一个linq,有这样的东西

from acc in container.vwAccounts
orderby acc.Name ascending
join p in container.Projects.Where(x => !x.Deleted.HasValue || !x.Deleted.Value)
on acc.accId in p.Projects.FundingAccounts.Select(f => f.accId).toList() into j
where j.Any()
select new CountModel { AccId = acc.accId, Name = acc.NAME, Count = j.Count() };
基本上,对于资助一个或多个项目的每个账户,选择其部分或全部资助的项目数量。我就是不知道该怎么走 这是查询的一部分

on acc.accId in p.Projects.FundingAccounts.Select(f => f.accId)

它不接受它。

它吐出的错误是什么?编译错误是什么?