我想通过检查带有一些数字的id来获取数据.
int r = 0; var ask = from y in entity.sorulars where y.soru_id == questionID[r] select new { y.sorutipi_id }; foreach (var hold2 in ask) { questionTypeID[r] = hold2.sorutipi_id; r++; }
我使用这些代码但是
“The LINQ expression node type ‘ArrayIndex’ is not supported in LINQ
to Entities.”