2
나는 내가 좋아하는 것을 돌려주지 않는 간단한 linq 문을 가지고있다. 나는 왜 내가 원하는 것을 얻기 위해 그것을 wriet하는 법을 모른다. 다음과 같이 쿼리는 다음과 같습니다 정말 원하는 모든이 된 IQueryable < tblAnswers 반면 나중에 쉽게 그들과 함께 작업 할 수 있도록이>, 내게 된 IQueryable < IEnumerable을 < tblAnswers >>의 반환 유형을주고있다Linq - IQueryable <IEnumerable>을 IQueryable로 바꾸는 방법
answers = from a in ents.tblCalls
where a.tblSessions.tblUsers.UserID == UserID.Value
&& (a.StartTime >= startdate.Value && a.StartTime <= enddate.Value)
select a.tblAnswers.Where(p => p.tblAnswerTypes.AnswerType ==
"Yes" && p.tblQuestions.tblQuestionTypes.QuestionType == "Sell In");
.
고마워요!
이를 삽입 할 경우 확실하지. IQueryable QAnswers; QAnswers = answers.AsQueryable()이 오류를 throw합니다. IQueryable>을 IQueryable로 변환 할 수 없습니다. –
Sergio
질문과 수정 된 답변을 다시 읽으십시오. 행운을 빈다. –
감사합니다. – Sergio