我有以下 sql 命令,我无法翻译成 linq
select Distinct(fp.Parks_Id)
from ParkFeaturePark fp
Inner Join Parkfeatures feat on fp.ParkFeatures_Id = feat.Id
Inner Join Parks p On fp.Parks_Id = p.Id
where p.Id In (Select Parks_Id from ParkFeaturePark where ParkFeatures_Id =1 )
And p.Id In (Select Parks_Id from ParkFeaturePark where ParkFeatures_Id =2 )
And p.Id In (Select Parks_Id from ParkFeaturePark where ParkFeatures_Id =31 )
And p.Id In (Select Parks_Id from ParkFeaturePark where ParkFeatures_Id =42 )
And p.Id In (Select Parks_Id from ParkFeaturePark where ParkFeatures_Id =106 )
And p.Id In (Select Parks_Id from ParkFeaturePark where ParkFeatures_Id =118 )
And p.Id In (Select Parks_Id from ParkFeaturePark where ParkFeatures_Id =4 )
And p.Id In (Select Parks_Id from ParkFeaturePark where ParkFeatures_Id =6 )
And p.Id In (Select Parks_Id from ParkFeaturePark where ParkFeatures_Id =10 )
And p.Id In (Select Parks_Id from ParkFeaturePark where ParkFeatures_Id =18 )
And p.Id In (Select Parks_Id from ParkFeaturePark where ParkFeatures_Id =22 )
And p.Id In (Select Parks_Id from ParkFeaturePark where ParkFeatures_Id =46 )
这里的转折是..我必须使用用户选择的组合..示例是
p.Id In (Select Parks_Id from ParkFeaturePark where ParkFeatures_Id =1 )
AND p.Id In (Select Parks_Id from ParkFeaturePark where ParkFeatures_Id =4 )
或用户选择的任何其他组合..
谢谢回复