含まれているエラーがあります:
linq のエラーは、'System.Collections.Generic.IEnumerable' から '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();