我想知道是否有一种方法可以使用 int 数组创建连接的 WHERE 子句。我需要得到整个数组组合的结果。我可以做类似的事情:
public ViewResult Results(int? programId, int? programYear, int? programTypeId, string toDate, string fromDate, int?[] programTypeIdList, int?[] programIdList)
{
surveyResponseRepository.Get().Any(x => x.ProgramId == programIdList);
}