5
我想知道是否有方法使用int數組創建連接的WHERE子句。我需要得到整個陣列的結果。我可以這樣做:串聯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);
}