0
error in linq cannot convert from 'System.Collections.Generic.IEnumerable' to 'System.Linq.IQueryable
爲什麼呢?
public class ListQuestionAssessor
{
public string sum { get; set; }
public int QuestionsID { get; set; }
public int AssessorID { get; set; }
public int AssessID { get; set; }
}
List<ListQuestionAssessor> objList = new List<ListQuestionAssessor>();
var lisaAddAssessor = (from p in objList
where
!
(from assessor in ObjNotIn
select new
{
assessor.id
}).Contains(new { p.QuestionsID })
select new QuestionAssessor()
{
QuestionsID = initQuestionerId
}).ToList();
我的問題解決了坦克 – 2013-04-21 06:31:41
請告訴我們發生了什麼事或刪除這個問題 – 2013-04-21 11:28:24